summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcompiler.h
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/egl/main/eglcompiler.h
parent14f1157a2e52f14149cee7cf87cf3b32c6e439fb (diff)
Define PUBLIC to dllexport on MSVC.
Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
Diffstat (limited to 'src/egl/main/eglcompiler.h')
-rw-r--r--src/egl/main/eglcompiler.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h
index 6ecee51d7ca..90c75e84b29 100644
--- a/src/egl/main/eglcompiler.h
+++ b/src/egl/main/eglcompiler.h
@@ -62,10 +62,14 @@
/**
* Function visibility
*/
-#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
-# define PUBLIC __attribute__((visibility("default")))
-#else
-# define PUBLIC
+#ifndef PUBLIC
+# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+# define PUBLIC __attribute__((visibility("default")))
+# elif defined(_MSC_VER)
+# define PUBLIC __declspec(dllexport)
+# else
+# define PUBLIC
+# endif
#endif
/**