summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glapitable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/glapi/glapitable.h')
-rw-r--r--src/mesa/glapi/glapitable.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapitable.h b/src/mesa/glapi/glapitable.h
index 55548adcd3b..4af0c2d43b8 100644
--- a/src/mesa/glapi/glapitable.h
+++ b/src/mesa/glapi/glapitable.h
@@ -30,7 +30,11 @@
# define _GLAPI_TABLE_H_
#ifndef GLAPIENTRYP
-#define GLAPIENTRYP
+# ifndef GLAPIENTRY
+# define GLAPIENTRY
+# endif
+
+# define GLAPIENTRYP GLAPIENTRY *
#endif
typedef void (*_glapi_proc)(void); /* generic function pointer */