diff options
| author | Martin Müller <muemart@users.noreply.github.com> | 2016-10-12 23:02:19 +0200 |
|---|---|---|
| committer | Martin Müller <muemart@users.noreply.github.com> | 2016-10-12 23:02:19 +0200 |
| commit | 2e35e0a145a583e2de8a0c337f18bb237b162c0e (patch) | |
| tree | 82cfe6560f3db2cab85564128973b8e72f9e8895 /ports/libiconv/0001-Add-export-definitions.patch | |
| parent | f5ff2ef0f31b557c7ef76d3290b2b35fe4a2f23f (diff) | |
| download | vcpkg-2e35e0a145a583e2de8a0c337f18bb237b162c0e.tar.gz vcpkg-2e35e0a145a583e2de8a0c337f18bb237b162c0e.zip | |
Patch files directly instead of copying or modifying with CMake
Diffstat (limited to 'ports/libiconv/0001-Add-export-definitions.patch')
| -rw-r--r-- | ports/libiconv/0001-Add-export-definitions.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ports/libiconv/0001-Add-export-definitions.patch b/ports/libiconv/0001-Add-export-definitions.patch new file mode 100644 index 000000000..3508e8f52 --- /dev/null +++ b/ports/libiconv/0001-Add-export-definitions.patch @@ -0,0 +1,34 @@ +diff --git "a/include/iconv.h.build.in" "b/include/iconv.h.build.in" +index 0feb068..74e5613 100644 +--- "a/include/iconv.h.build.in" ++++ "b/include/iconv.h.build.in" +@@ -27,6 +27,12 @@ + #define LIBICONV_DLL_EXPORTED __attribute__((__visibility__("default"))) ++#elif defined(_WIN32) ++ #if defined(libiconv_EXPORTS) ++ #define LIBICONV_DLL_EXPORTED __declspec(dllexport) ++ #else ++ #define LIBICONV_DLL_EXPORTED __declspec(dllimport) ++ #endif + #else + #define LIBICONV_DLL_EXPORTED + #endif + extern LIBICONV_DLL_EXPORTED @DLL_VARIABLE@ int _libiconv_version; /* Likewise */ + +diff --git "a/libcharset/include/localcharset.h.build.in" "b/libcharset/include/localcharset.h.build.in" +index c691359..2a23585 100644 +--- "a/libcharset/include/localcharset.h.build.in" ++++ "b/libcharset/include/localcharset.h.build.in" +@@ -24,6 +24,12 @@ + #define LIBCHARSET_DLL_EXPORTED __attribute__((__visibility__("default"))) ++#elif defined(_WIN32) ++ #if defined(libcharset_EXPORTS) ++ #define LIBCHARSET_DLL_EXPORTED __declspec(dllexport) ++ #else ++ #define LIBCHARSET_DLL_EXPORTED __declspec(dllimport) ++ #endif + #else + #define LIBCHARSET_DLL_EXPORTED + #endif + + |
