summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-23 10:18:10 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-23 10:18:10 +0000
commitd18baca45cbef7ccc07d467979e873166d9dd85b (patch)
treefd3b4dd47ae589b20b51914274fca2bf59818827 /libvo
parent2e51fd4440edf02797b1e1a36a8fad614684a835 (diff)
downloadmpv-d18baca45cbef7ccc07d467979e873166d9dd85b.tar.bz2
mpv-d18baca45cbef7ccc07d467979e873166d9dd85b.tar.xz
workaround for gl.h variants that do not define APIENTRY
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17669 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index 926121ac65..fdba8440a8 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -17,6 +17,15 @@
#include "x11_common.h"
#endif
+// workaround for some gl.h headers
+#ifndef APIENTRY
+#ifdef GLAPIENTRY
+#define APIENTRY GLAPIENTRY
+#else
+#define APIENTRY
+#endif
+#endif
+
/**
* \defgroup glextdefines OpenGL extension defines
*