VirtualBox

Changeset 33894 in vbox


Ignore:
Timestamp:
Nov 9, 2010 12:34:40 PM (14 years ago)
Author:
vboxsync
Message:

Fixed libpng building on non-windows hosts - it was using the wrong zlib headers.

Location:
trunk/src/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libpng-1.2.8/Makefile.kmk

    r28800 r33894  
    55
    66#
    7 # Copyright (C) 2006-2008 Oracle Corporation
     7# Copyright (C) 2006-2010 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121LIBRARIES += VBox-libpng
    2222VBox-libpng_TEMPLATE = VBOXR3NP
    23 VBox-libpng_INCS = ../zlib-1.2.1
     23VBox-libpng_SDKS = VBOX_ZLIB
    2424VBox-libpng_SOURCES = \
    2525        png.c \
  • trunk/src/libs/zlib-1.2.1/zconf.h

    r6390 r33894  
    1313 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
    1414 */
     15#ifdef VBOX /* Map public symbols to make sure the build is sane. */
     16#  define deflateInit_          vboxzlib_deflateInit_
     17#  define deflate               vboxzlib_deflate
     18#  define deflateEnd            vboxzlib_deflateEnd
     19#  define inflateInit_          vboxzlib_inflateInit_
     20#  define inflate               vboxzlib_inflate
     21#  define inflateEnd            vboxzlib_inflateEnd
     22#  define deflateInit2_         vboxzlib_deflateInit2_
     23#  define deflateSetDictionary  vboxzlib_deflateSetDictionary
     24#  define deflateCopy           vboxzlib_deflateCopy
     25#  define deflateReset          vboxzlib_deflateReset
     26#  define deflatePrime          vboxzlib_deflatePrime
     27#  define deflateParams         vboxzlib_deflateParams
     28#  define deflateBound          vboxzlib_deflateBound
     29#  define inflateInit2_         vboxzlib_inflateInit2_
     30#  define inflateSetDictionary  vboxzlib_inflateSetDictionary
     31#  define inflateSync           vboxzlib_inflateSync
     32#  define inflateSyncPoint      vboxzlib_inflateSyncPoint
     33#  define inflateCopy           vboxzlib_inflateCopy
     34#  define inflateReset          vboxzlib_inflateReset
     35#  define compress              vboxzlib_compress
     36#  define compress2             vboxzlib_compress2
     37#  define compressBound         vboxzlib_compressBound
     38#  define uncompress            vboxzlib_uncompress
     39#  define adler32               vboxzlib_adler32
     40#  define crc32                 vboxzlib_crc32
     41#  define get_crc_table         vboxzlib_get_crc_table
     42
     43#  define Byte                  vboxzlib_Byte
     44#  define uInt                  vboxzlib_uInt
     45#  define uLong                 vboxzlib_uLong
     46#  define Bytef                 vboxzlib_Bytef
     47#  define charf                 vboxzlib_charf
     48#  define intf                  vboxzlib_intf
     49#  define uIntf                 vboxzlib_uIntf
     50#  define uLongf                vboxzlib_uLongf
     51#  define voidpf                vboxzlib_voidpf
     52#  define voidp                 vboxzlib_voidp
     53#else /* !VBOX */
    1554#ifdef Z_PREFIX
    1655#  define deflateInit_  z_deflateInit_
     
    5291#  define voidp         z_voidp
    5392#endif
     93#endif /*!VBOX*/
    5494
    5595#if defined(__MSDOS__) && !defined(MSDOS)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette