aboutsummaryrefslogtreecommitdiffstats
path: root/ws_symbol_export.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-16 21:40:42 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-16 21:40:42 +0000
commit0e029166ba5f894893c06fba315e1a7340eef156 (patch)
tree1a70bcaf9386742f0d6063a55b0910e9cb55c11e /ws_symbol_export.h
parent623caeeaa0038880925fa12d029d42d774c6ac8e (diff)
OK, does it matter in which order "extern" and "declspec" appear?
svn path=/trunk/; revision=53373
Diffstat (limited to 'ws_symbol_export.h')
-rw-r--r--ws_symbol_export.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ws_symbol_export.h b/ws_symbol_export.h
index ebf9e7d935..be10c93ab0 100644
--- a/ws_symbol_export.h
+++ b/ws_symbol_export.h
@@ -141,6 +141,10 @@
*
* Either can be used for exported *function* declarations and definitions.
*/
+#if defined _WIN32 || defined __CYGWIN__
+#define WS_DLL_PUBLIC extern WS_DLL_PUBLIC_DEF
+#else
#define WS_DLL_PUBLIC WS_DLL_PUBLIC_DEF extern
+#endif
#endif /* SYMBOL_EXPORT_H */