summaryrefslogtreecommitdiffstats
path: root/third_party/khronos/GLES2/gl2platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/khronos/GLES2/gl2platform.h')
-rw-r--r--third_party/khronos/GLES2/gl2platform.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/third_party/khronos/GLES2/gl2platform.h b/third_party/khronos/GLES2/gl2platform.h
index c9fa3c4..f1c8520 100644
--- a/third_party/khronos/GLES2/gl2platform.h
+++ b/third_party/khronos/GLES2/gl2platform.h
@@ -19,8 +19,18 @@
#include <KHR/khrplatform.h>
-#ifndef GL_APICALL
-#define GL_APICALL KHRONOS_APICALL
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+#if defined(GLES2_C_LIB_IMPLEMENTATION)
+#define GL_APICALL __declspec(dllexport)
+#else
+#define GL_APICALL __declspec(dllimport)
+#endif /* defined(GLES2_C_LIB_IMPLEMENTATION) */
+#else /* defined(WIN32) */
+#define GL_APICALL __attribute__((visibility("default")))
+#endif
+#else
+# define GL_APICALL
#endif
#ifndef GL_APIENTRY