diff libvo/gl_common.h @ 17668:b822575a1140

workaround for gl.h variants that do not define APIENTRY
author reimar
date Thu, 23 Feb 2006 10:18:10 +0000
parents f580a7755ac5
children e8dca2bbd796
line wrap: on
line diff
--- a/libvo/gl_common.h	Wed Feb 22 20:39:44 2006 +0000
+++ b/libvo/gl_common.h	Thu Feb 23 10:18:10 2006 +0000
@@ -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
  *