summaryrefslogtreecommitdiff
path: root/config.h.win32.in
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2013-08-30 13:48:12 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2013-08-30 13:48:12 +0800
commit6278c404510843782bda4ad9e44b19737c8af8cd (patch)
tree80b0bd4cf9e5c62fd7d684a2ecf2c33b4544169c /config.h.win32.in
parentd8440d63737b673b066bd57d49f8833513146371 (diff)
downloadgtk+-6278c404510843782bda4ad9e44b19737c8af8cd.tar.gz
Update config.h.win32(.in)
Define _GDK_EXTERN more in line with the definition of it on Windows as defined in configure.ac, and add a MinGW variant for it as well
Diffstat (limited to 'config.h.win32.in')
-rw-r--r--config.h.win32.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.h.win32.in b/config.h.win32.in
index 77b80aaff2..3ab94022dd 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -305,7 +305,11 @@
/* #undef _FILE_OFFSET_BITS */
/* defines how to decorate public symbols while building */
-#define _GDK_EXTERN __declspec (dllexport)
+#ifdef _MSC_VER
+#define _GDK_EXTERN __declspec (dllexport) extern
+#else
+#define _GDK_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern
+#endif
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */