summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-31 11:15:06 +0800
committerChia-I Wu <[email protected]>2010-05-31 11:31:07 +0800
commitba26631d0d936523c7a8f002cf469e569aa6d7a3 (patch)
tree4099b9c76aa85fd44492817199fd09f867bd5892 /src/mapi
parent14f1157a2e52f14149cee7cf87cf3b32c6e439fb (diff)
Define PUBLIC to dllexport on MSVC.
Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/mapi/u_compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/mapi/u_compiler.h b/src/mapi/mapi/u_compiler.h
index cc9e2cd1e81..f1752d16f27 100644
--- a/src/mapi/mapi/u_compiler.h
+++ b/src/mapi/mapi/u_compiler.h
@@ -28,10 +28,10 @@
#ifndef PUBLIC
# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define PUBLIC __attribute__((visibility("default")))
-# define HIDDEN __attribute__((visibility("hidden")))
+# elif defined(_MSC_VER)
+# define PUBLIC __declspec(dllexport)
# else
# define PUBLIC
-# define HIDDEN
# endif
#endif