[Mesa-dev] Recent enums.c change breaks MSVC

Brian Paul brianp at vmware.com
Tue Dec 1 12:03:38 PST 2015


Hi Eric,

enums.c no longer compiles on MSVC because the enum_string_table[] 
string literal is too long.  The MSVC limit is 65535 chars.

The ugly work-around is to generate an array of characters:

LONGSTRING static const char enum_string_table[] = {
'G', 'L', '_', 'N', 'O', '_', 'E', 'R', 'R', 'O', 'R', '\0',
'G', 'L', '_', 'T', 'R', 'U', 'E', '\0',
[...]

I'll post a patch to do that for now.  Maybe you can come up with a 
better solution though.

I also had to patch the SConscript file...

-Brian


More information about the mesa-dev mailing list