vcpkg/ports/pango/0001-fix-static-symbols-export.diff

17 lines
443 B
Diff
Raw Normal View History

2017-04-27 06:39:16 +08:00
diff --git a/config.h.win32 b/config.h.win32
2017-05-04 23:47:22 +08:00
index 31b330f..e5ed86c 100644
2017-04-27 06:39:16 +08:00
--- a/config.h.win32
+++ b/config.h.win32
@@ -147,7 +147,11 @@
/* defines how to decorate public symbols while building */
#ifdef _MSC_VER
2017-05-04 23:47:22 +08:00
+#ifdef PANGO_EXPORTS
2017-04-27 06:39:16 +08:00
#define _PANGO_EXTERN __declspec(dllexport) extern
#else
+#define _PANGO_EXTERN extern
+#endif
+#else
#define _PANGO_EXTERN __attribute__((visibility("default"))) __declspec(dllexport) extern
#endif