intel/tools: Fix build with glibc < 2.27.
authorVinson Lee <vlee@freedesktop.org>
Fri, 10 May 2019 18:24:18 +0000 (11:24 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 13 May 2019 18:05:48 +0000 (11:05 -0700)
commit20b42fad9b705f59b2467226abac299a7d473920
tree021ccec2888f85b032926a5e14962ff90e5b5ea6
parent84816d1464c6dfd54b5b2b804567e4a18ea3d0dc
intel/tools: Fix build with glibc < 2.27.

glibc < 2.27 defines OVERFLOW in /usr/include/math.h.

This patch fixes this build error.

In file included from ../include/c99_math.h:37:0,
                 from ../src/util/u_math.h:44,
                 from ../src/mesa/main/macros.h:35,
                 from ../src/intel/compiler/brw_reg.h:47,
                 from ../src/intel/tools/i965_asm.h:32,
                 from ../src/intel/tools/i965_gram.y:29:
src/intel/tools/i965_gram.tab.c:562:5: error: expected identifier before numeric constant
     OVERFLOW = 412,
     ^

Fixes: 70308a5a8a80 ("intel/tools: New i965 instruction assembler tool")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110656
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/intel/tools/i965_asm.h