diff options
| author | codicodi <rob.ceglinski@gmail.com> | 2017-01-02 01:31:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-02 01:31:42 +0100 |
| commit | 044c07ece1aa0e3e46e0c059cb5877b1bc18c76c (patch) | |
| tree | fdaa68387fd7b8b72bf6ab729668f713affadcf9 /ports/bzip2/fix-import-export-macros.patch | |
| parent | 31daeeb7f585d0b64de78e31b4e0de8be8b5d213 (diff) | |
| download | vcpkg-044c07ece1aa0e3e46e0c059cb5877b1bc18c76c.tar.gz vcpkg-044c07ece1aa0e3e46e0c059cb5877b1bc18c76c.zip | |
add bzip2
Diffstat (limited to 'ports/bzip2/fix-import-export-macros.patch')
| -rw-r--r-- | ports/bzip2/fix-import-export-macros.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ports/bzip2/fix-import-export-macros.patch b/ports/bzip2/fix-import-export-macros.patch new file mode 100644 index 000000000..e3ee8494b --- /dev/null +++ b/ports/bzip2/fix-import-export-macros.patch @@ -0,0 +1,40 @@ +diff --git a/bzlib.h b/bzlib.h
+index 8277123..84fbd0a 100644
+--- a/bzlib.h
++++ b/bzlib.h
+@@ -65,29 +65,23 @@ typedef
+ }
+ bz_stream;
+
+-
+-#ifndef BZ_IMPORT
+-#define BZ_EXPORT
+-#endif
+-
+ #ifndef BZ_NO_STDIO
+ /* Need a definitition for FILE */
+ #include <stdio.h>
+ #endif
+
+ #ifdef _WIN32
+-# include <windows.h>
+ # ifdef small
+ /* windows.h define small to char */
+ # undef small
+ # endif
+-# ifdef BZ_EXPORT
+-# define BZ_API(func) WINAPI func
+-# define BZ_EXTERN extern
++# define BZ_API(func) func
++# if defined(BZ_BUILD_DLL)
++# define BZ_EXTERN __declspec(dllexport)
++# elif defined(BZ_IMPORT)
++# define BZ_EXTERN __declspec(dllimport)
+ # else
+- /* import windows dll dynamically */
+-# define BZ_API(func) (WINAPI * func)
+-# define BZ_EXTERN
++# define BZ_EXTERN
+ # endif
+ #else
+ # define BZ_API(func) func
|
