summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-07-07 18:11:35 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-08-15 10:01:20 +0800
commitd2ff2e13accf248b6d38aba0b0e310b31bf7cd3d (patch)
tree271d0cb3b0feb0b3d7d6aae556bfe6d38e2939a7
parentd281b07c4aba18d30c4365ef3cba2df85ac4ab6f (diff)
downloadgobject-introspection-d2ff2e13accf248b6d38aba0b0e310b31bf7cd3d.tar.gz
Update config.h.win32.in For Symbol Exporting
This updates the pre-defined config.h.win32(.in) so that the Visual Studio builds can use so that symbols for libgirepository and the test libraries can be exported using the compiler directive __declspec(dllexport), without the use of .def files. https://bugzilla.gnome.org/show_bug.cgi?id=732669
-rw-r--r--config.h.win32.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.win32.in b/config.h.win32.in
index 3bc66f23..f6e12cc6 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -132,5 +132,12 @@
`char[]'. */
#define YYTEXT_POINTER 1
+/* defines how to decorate public symbols while building */
+#ifdef _MSC_VER
+#define _GI_EXTERN __declspec (dllexport) extern
+#else
+#define _GI_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern
+#endif
+
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */