summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-04 15:37:39 -0800
committerEric Anholt <eric@anholt.net>2013-12-04 23:10:13 -0800
commit2ba8d853b4bbe50bcd60cfa89f3a0b5cf4e8d147 (patch)
tree1ad32483ae7d0eb767aaa3ba316a324d5632deb7 /include
parent725b8cfc818514a455a8f412592f73f0305068d8 (diff)
downloadlibepoxy-2ba8d853b4bbe50bcd60cfa89f3a0b5cf4e8d147.tar.gz
Add some more gl.h definitions that might be used by applications.
These in particular get used by software that was doing GetProcAddress, and we want to be able to just drop in our gl.h instead.
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/gl.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h
index 71f06ad..102d705 100644
--- a/include/epoxy/gl.h
+++ b/include/epoxy/gl.h
@@ -48,6 +48,23 @@ extern "C" {
#define __glext_h_
#endif
+#ifndef _WIN32
+/* APIENTRY and GLAPIENTRY are not used on Linux or Mac. */
+#define APIENTRY
+#define GLAPIENTRY
+#else
+#ifndef APIENTRY
+#define APIENTRY __stdcall
+#endif
+
+#ifndef GLAPIENTRY
+#define GLAPIENTRY APIENTRY
+#endif
+
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+#endif /* _WIN32 */
#include "epoxy/gl_common.h"
#include "epoxy/gl_generated.h"