meson: Fix winflexbison warnings

Undefine __STDC_VERSION__ for C files to avoid mismatch with C11/C17.

Define __STDC_VERSION__ for C++ files to use <inttypes.h> path.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10196>
This commit is contained in:
James Park
2021-04-12 15:09:57 -07:00
committed by Marge Bot
parent 5b8a4516e6
commit 75d8998f7c
2 changed files with 13 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ glsl_lexer_cpp = custom_target(
'glsl_lexer_cpp',
input : 'glsl_lexer.ll',
output : 'glsl_lexer.cpp',
command : [prog_flex, '-o', '@OUTPUT@', '@INPUT@'],
command : [prog_flex_cpp, '-o', '@OUTPUT@', '@INPUT@'],
)
ir_expression_operation_constant_h = custom_target(