]> git.tdb.fi Git - libs/gl.git/blob - source/core/gl.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / core / gl.h
1 #ifndef MSP_GL_GL_H_
2 #define MSP_GL_GL_H_
3
4 #ifdef __APPLE__
5 #pragma clang diagnostic push
6 #pragma clang diagnostic ignored "-Wkeyword-macro"
7 #define extern extern __attribute__((weak_import))
8 #include <OpenGL/gl.h>
9 #include <OpenGL/glext.h>
10 #undef extern
11 #pragma clang diagnostic pop
12 #elif defined(__ANDROID__)
13 #include <GLES3/gl3.h>
14 #include <GLES3/gl3ext.h>
15 typedef double GLdouble;
16 typedef long long GLint64;
17 #else
18 #ifdef _WIN32
19 #ifndef WINAPI
20 #if defined(_ARM_)
21 #define WINAPI
22 #else
23 #define WINAPI __stdcall
24 #endif
25 #endif
26 #ifndef APIENTRY
27 #define APIENTRY WINAPI
28 #endif
29 #ifndef DECLSPEC_IMPORT
30 #define DECLSPEC_IMPORT __declspec(dllimport)
31 #endif
32 #ifndef WINGDIAPI
33 #define WINGDIAPI DECLSPEC_IMPORT
34 #endif
35 #endif
36 #include <GL/gl.h>
37 #include <GL/glext.h>
38 #endif
39
40 #ifndef APIENTRY
41 #define APIENTRY
42 #endif
43
44 #endif