summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-03-11 16:54:15 -0600
committerBrian Paul <[email protected]>2015-03-12 07:52:45 -0600
commit6d3b86c3afe4ee1bfb29c322b3d36131139cbab9 (patch)
tree0bd6f07866daefaba06fc4e4dcbef71dd455de7c /src/mapi
parentf8ed0bbfef7b8e8098cb3263a196689dbd280758 (diff)
mesa: move LONGSTRING into generated enums.c
enums.c is the only place this directive is needed. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_enums.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py
index d61618f4da0..f45782df85f 100644
--- a/src/mapi/glapi/gen/gl_enums.py
+++ b/src/mapi/glapi/gen/gl_enums.py
@@ -157,6 +157,12 @@ _mesa_lookup_prim_by_nr(GLuint nr)
string_offsets = {}
i = 0;
+ print '#if defined(__GNUC__)'
+ print '# define LONGSTRING __extension__'
+ print '#else'
+ print '# define LONGSTRING'
+ print '#endif'
+ print ''
print 'LONGSTRING static const char enum_string_table[] = '
for enum, name in enum_table:
print ' "%s\\0"' % (name)