summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-01-19 12:43:22 +0000
committerGitHub <noreply@github.com>2018-01-19 12:43:22 +0000
commit3f1699b6822b429400563692efc3dbd55d765b38 (patch)
tree9d50f01fb92bf9bc528bb7b58d0b8bc05b53cf53
parent1b54e263eb112030b59c06f5daed0f75c8653cf3 (diff)
parent4e5e17eb0a9ff387996c41d162cdcbf4f2365676 (diff)
downloadlibepoxy-3f1699b6822b429400563692efc3dbd55d765b38.tar.gz
Merge pull request #151 from rib/wip/rib/android
Check __ANDROID__ define when guarding Android code
-rw-r--r--src/dispatch_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index 718ae07..c973572 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -175,14 +175,14 @@
#ifdef __APPLE__
#define GLX_LIB "/opt/X11/lib/libGL.1.dylib"
-#elif defined(ANDROID)
+#elif defined(__ANDROID__)
#define GLX_LIB "libGLESv2.so"
#else
#define GLVND_GLX_LIB "libGLX.so.1"
#define GLX_LIB "libGL.so.1"
#endif
-#ifdef ANDROID
+#ifdef __ANDROID__
#define EGL_LIB "libEGL.so"
#define GLES1_LIB "libGLESv1_CM.so"
#define GLES2_LIB "libGLESv2.so"
@@ -718,7 +718,7 @@ epoxy_get_core_proc_address(const char *name, int core_version)
{
#ifdef _WIN32
int core_symbol_support = 11;
-#elif defined(ANDROID)
+#elif defined(__ANDROID__)
/**
* All symbols must be resolved through eglGetProcAddress
* on Android