glcpp: Disallow "defined" as a macro name.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Feb 2016 01:15:23 +0000 (17:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Feb 2016 21:38:50 +0000 (13:38 -0800)
commit1c694a6c20da21f31c584fd41d28e2f03522617d
treeee308423d64785490d732f09e5aa2e32d5181672
parentdfc95ad6d129436a3d2383152583919fb2dde261
glcpp: Disallow "defined" as a macro name.

Both GCC and Clang disallow this, and glslang has recently started
disallowing it as well.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94188
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/glcpp/glcpp-parse.y