summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-05-31 11:15:06 +0800
committerChia-I Wu <olv@lunarg.com>2010-05-31 11:31:07 +0800
commitba26631d0d936523c7a8f002cf469e569aa6d7a3 (patch)
tree4099b9c76aa85fd44492817199fd09f867bd5892 /src/gallium/include/pipe
parent14f1157a2e52f14149cee7cf87cf3b32c6e439fb (diff)
Define PUBLIC to dllexport on MSVC.
Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index 9b31555f1b..a14486a5fb 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -102,6 +102,8 @@ typedef unsigned char boolean;
#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