summaryrefslogtreecommitdiffstats
path: root/include/VG
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-31 11:03:48 +0800
committerChia-I Wu <[email protected]>2010-05-31 11:31:07 +0800
commit14f1157a2e52f14149cee7cf87cf3b32c6e439fb (patch)
tree729249e4f40db8d441caf26862ce201bf5f0e014 /include/VG
parentd2cb99904578b263396752975d60c8d7e2eac14b (diff)
Update KHRONOS_APICALL for _WIN32 platform.
Use __declspec(dllexport) when KHRONOS_DLL_EXPORTS is defined.
Diffstat (limited to 'include/VG')
-rw-r--r--include/VG/vgplatform.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/include/VG/vgplatform.h b/include/VG/vgplatform.h
index 2c626a971e1..71dee68b9d4 100644
--- a/include/VG/vgplatform.h
+++ b/include/VG/vgplatform.h
@@ -34,28 +34,17 @@
#ifndef _VGPLATFORM_H
#define _VGPLATFORM_H
+#include <KHR/khrplatform.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
-# define VG_API_CALL __attribute__((visibility("default")))
-# define VGU_API_CALL __attribute__((visibility("default")))
-#endif
-
#ifndef VG_API_CALL
#if defined(OPENVG_STATIC_LIBRARY)
# define VG_API_CALL
#else
-# if defined(_WIN32) || defined(__VC32__) /* Win32 */
-# if defined (OPENVG_DLL_EXPORTS)
-# define VG_API_CALL __declspec(dllexport)
-# else
-# define VG_API_CALL __declspec(dllimport)
-# endif
-# else
-# define VG_API_CALL extern
-# endif /* defined(_WIN32) ||... */
+# define VG_API_CALL KHRONOS_APICALL
#endif /* defined OPENVG_STATIC_LIBRARY */
#endif /* ifndef VG_API_CALL */
@@ -63,15 +52,7 @@ extern "C" {
#if defined(OPENVG_STATIC_LIBRARY)
# define VGU_API_CALL
#else
-# if defined(_WIN32) || defined(__VC32__) /* Win32 */
-# if defined (OPENVG_DLL_EXPORTS)
-# define VGU_API_CALL __declspec(dllexport)
-# else
-# define VGU_API_CALL __declspec(dllimport)
-# endif
-# else
-# define VGU_API_CALL extern
-# endif /* defined(_WIN32) ||... */
+# define VGU_API_CALL KHRONOS_APICALL
#endif /* defined OPENVG_STATIC_LIBRARY */
#endif /* ifndef VGU_API_CALL */