]> git.cworth.org Git - apitrace/blob - thirdparty/glext/GL/glext.sed
bc4835db2403f4671eaaf697352d9a3fca4c25d8
[apitrace] / thirdparty / glext / GL / glext.sed
1 # MacOSX doesn't follow the official glext.h definition for GLhandleARB, and
2 # instead defines it as:
3 #
4 #   typedef void *GLhandleARB;
5 #
6 # But to avoid integer to pointer conversion issues, we simply use 'unsigned
7 # long' which should be the same size on all supported architectures.
8
9 /^typedef unsigned int GLhandleARB;$/ {
10
11     i\
12 #ifdef __APPLE__\
13 typedef unsigned long GLhandleARB;\
14 #else
15
16     a\
17 #endif
18
19 }