mesa: move LONGSTRING into generated enums.c
enums.c is the only place this directive is needed. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -113,15 +113,6 @@ extern "C" {
|
||||
#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
|
||||
|
||||
|
||||
/**
|
||||
* LONGSTRING macro
|
||||
* gcc -pedantic warns about long string literals, LONGSTRING silences that.
|
||||
*/
|
||||
#if !defined(__GNUC__)
|
||||
# define LONGSTRING
|
||||
#else
|
||||
# define LONGSTRING __extension__
|
||||
#endif
|
||||
|
||||
#define IEEE_ONE 0x3f800000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user