summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/gl_common.h')
-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
*