summaryrefslogtreecommitdiff
path: root/src/dispatch_common.h
diff options
context:
space:
mode:
authorYaron Cohen-Tal <yaronct@gmail.com>2015-08-03 21:07:37 +0300
committerYaron Cohen-Tal <yaronct@gmail.com>2015-08-26 19:41:51 +0300
commit06fd4a271ad88476d8c6a37d49b6a8af5a11d988 (patch)
tree6e0422152c8ee3f2a984c5a77dbf0bbbca701618 /src/dispatch_common.h
parent540952010bc2707bedfbbfe89c77d1a1640e76ae (diff)
downloadlibepoxy-06fd4a271ad88476d8c6a37d49b6a8af5a11d988.tar.gz
Add support for CMake (no support for building/running the tests yet). Fix support for Android. Add built-in support for building with EGL support (using "khrplatform.h" and "eglplatform.h" which are distributed together with Epoxy, and should work with any platform).
Diffstat (limited to 'src/dispatch_common.h')
-rw-r--r--src/dispatch_common.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/dispatch_common.h b/src/dispatch_common.h
index c32815a..8929a11 100644
--- a/src/dispatch_common.h
+++ b/src/dispatch_common.h
@@ -23,32 +23,19 @@
#include <stdbool.h>
-#ifdef _WIN32
-#define PLATFORM_HAS_EGL 1
-#define PLATFORM_HAS_GLX 0
-#define PLATFORM_HAS_WGL 1
-#elif defined(__APPLE__)
-#define PLATFORM_HAS_EGL 0
-#define PLATFORM_HAS_GLX 0
-#define PLATFORM_HAS_WGL 0
-#elif defined(ANDROID)
-#define PLATFORM_HAS_EGL 1
-#define PLATFORM_HAS_GLX 0
-#define PLATFORM_HAS_WGL 0
-#else
-#define PLATFORM_HAS_EGL 1
-#define PLATFORM_HAS_GLX 1
-#define PLATFORM_HAS_WGL 0
-#endif
+#include "epoxy/config.h"
-#if PLATFORM_HAS_WGL
+#if EPOXY_SUPPORT_WGL
#include "epoxy/wgl.h"
#endif
+
#include "epoxy/gl.h"
-#if PLATFORM_HAS_GLX
+
+#if EPOXY_SUPPORT_GLX
#include "epoxy/glx.h"
#endif
-#if PLATFORM_HAS_EGL
+
+#if EPOXY_SUPPORT_EGL
#include "epoxy/egl.h"
#endif