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:
Brian Paul
2015-03-11 16:54:15 -06:00
parent f8ed0bbfef
commit 6d3b86c3af
2 changed files with 6 additions and 9 deletions
+6
View File
@@ -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)
-9
View File
@@ -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