diff options
author | Ian Romanick <[email protected]> | 2007-03-06 11:50:33 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2007-03-06 11:50:33 -0800 |
commit | fa8961069c5a99f118deeb5c0217e7c7e1de5f1a (patch) | |
tree | 89bfa3efc22b429f0197b081963d55ef1bdc4614 /src/mesa/glapi | |
parent | 091be1119050f8cd158161aa3960b1f4260cd790 (diff) | |
parent | a510bc3ee1a696da120c09ee4ec33dc033f671ac (diff) |
Merge branch 'master' of ssh+git://[email protected]/git/mesa/mesa
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r-- | src/mesa/glapi/gl_table.py | 6 | ||||
-rw-r--r-- | src/mesa/glapi/glapitable.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/glapi/gl_table.py b/src/mesa/glapi/gl_table.py index 52b4be1d2b5..69f7bd7c7b5 100644 --- a/src/mesa/glapi/gl_table.py +++ b/src/mesa/glapi/gl_table.py @@ -49,7 +49,11 @@ class PrintGlTable(gl_XML.gl_print_base): def printRealHeader(self): print '#ifndef GLAPIENTRYP' - print '#define GLAPIENTRYP' + print '# ifndef GLAPIENTRY' + print '# define GLAPIENTRY' + print '# endif' + print '' + print '# define GLAPIENTRYP GLAPIENTRY *' print '#endif' print '' print 'typedef void (*_glapi_proc)(void); /* generic function pointer */' 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 */ |