summaryrefslogtreecommitdiff
path: root/include/epoxy/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 /include/epoxy/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 'include/epoxy/common.h')
-rw-r--r--include/epoxy/common.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/epoxy/common.h b/include/epoxy/common.h
index e00a011..a190e02 100644
--- a/include/epoxy/common.h
+++ b/include/epoxy/common.h
@@ -29,6 +29,10 @@
#ifndef EPOXY_COMMON_H
#define EPOXY_COMMON_H
+#include "epoxy/config.h"
+
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -47,12 +51,13 @@ extern "C" {
#define EPOXY_IMPORTEXPORT __declspec(dllimport)
#endif
#endif
+#elif defined __ANDROID__
+ #include <sys/cdefs.h>
+ #define EPOXY_IMPORTEXPORT __attribute__((visibility("default"))) __NDK_FPABI__
+#elif (defined __GNUC__ && __GNUC__ >= 4) || (defined __SUNPRO_C && __SUNPRO_C >= 0x590)
+ #define EPOXY_IMPORTEXPORT __attribute__ ((visibility ("default")))
#else
- #if __GNUC__ >= 4
- #define EPOXY_IMPORTEXPORT __attribute__ ((visibility ("default")))
- #else
- #define EPOXY_IMPORTEXPORT
- #endif
+ #define EPOXY_IMPORTEXPORT
#endif
#ifdef __cplusplus