SHARE
TWEET

Untitled

a guest Jul 17th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #if defined(WINDOWS) || defined(WIN32)
  2.    /* If building or using zlib as a DLL, define ZLIB_DLL.
  3.     * This is not mandatory, but it offers a little performance increase.
  4.     */
  5. #  ifdef ZLIB_DLL
  6. #    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
  7. #      ifdef ZLIB_INTERNAL
  8. #        define ZEXTERN extern __declspec(dllexport)
  9. #      else
  10. #        define ZEXTERN extern __declspec(dllimport)
  11. #      endif
  12. #    endif
  13. #  endif  /* ZLIB_DLL */
  14.    /* If building or using zlib with the WINAPI/WINAPIV calling convention,
  15.     * define ZLIB_WINAPI.
  16.     * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
  17.     */
  18. #  ifdef ZLIB_WINAPI
  19. #    ifdef FAR
  20. #      undef FAR
  21. #    endif
  22. #    include <windows.h>
  23.      /* No need for _export, use ZLIB.DEF instead. */
  24.      /* For complete Windows compatibility, use WINAPI, not __stdcall. */
  25. #    define ZEXPORT WINAPI
  26. #    ifdef WIN32
  27. #      define ZEXPORTVA WINAPIV
  28. #    else
  29. #      define ZEXPORTVA FAR CDECL
  30. #    endif
  31. #  endif
  32. #endif
  33.  
  34. #if defined (__BEOS__)
  35. #  ifdef ZLIB_DLL
  36. #    ifdef ZLIB_INTERNAL
  37. #      define ZEXPORT   __declspec(dllexport)
  38. #      define ZEXPORTVA __declspec(dllexport)
  39. #    else
  40. #      define ZEXPORT   __declspec(dllimport)
  41. #      define ZEXPORTVA __declspec(dllimport)
  42. #    endif
  43. #  endif
  44. #endif
  45.  
  46. #ifdef HAVE_VISIBILITY_PRAGMA
  47. #  define ZEXTERN __attribute__((visibility ("default"))) extern
  48. #endif
  49.  
  50. #ifndef ZEXTERN
  51. #  define ZEXTERN extern
  52. #endif
  53. #ifndef ZEXPORT
  54. #  define ZEXPORT
  55. #endif
  56. #ifndef ZEXPORTVA
  57. #  define ZEXPORTVA
  58. #endif
RAW Paste Data
Top