summaryrefslogtreecommitdiffstats
path: root/third_party/khronos/GLES2/gl2platform.h
blob: ae4ec48d2218c385e1388200ce5178c49f8c770a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __gl2platform_h_
#define __gl2platform_h_

/* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */

/*
 * This document is licensed under the SGI Free Software B License Version
 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
 */

/* Platform-specific types and definitions for OpenGL ES 2.X  gl2.h
 *
 * Adopters may modify khrplatform.h and this file to suit their platform.
 * You are encouraged to submit all modifications to the Khronos group so that
 * they can be included in future versions of this file.  Please submit changes
 * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
 * by filing a bug against product "OpenGL-ES" component "Registry".
 */

#include <KHR/khrplatform.h>

#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
#define GL_APIENTRY KHRONOS_APIENTRY
#endif

#undef GL_APIENTRY
#define GL_APIENTRY

#endif /* __gl2platform_h_ */