vcpkg/ports/pango/0001-fix-static-symbols-export.diff
2017-05-04 17:47:22 +02:00

17 lines
443 B
Diff

diff --git a/config.h.win32 b/config.h.win32
index 31b330f..e5ed86c 100644
--- a/config.h.win32
+++ b/config.h.win32
@@ -147,7 +147,11 @@
/* defines how to decorate public symbols while building */
#ifdef _MSC_VER
+#ifdef PANGO_EXPORTS
#define _PANGO_EXTERN __declspec(dllexport) extern
#else
+#define _PANGO_EXTERN extern
+#endif
+#else
#define _PANGO_EXTERN __attribute__((visibility("default"))) __declspec(dllexport) extern
#endif