Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1845
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3500>
]
if gcc_compat:
cppdefines += [('__MSVCRT_VERSION__', '0x0700')]
+ cppdefines += ['_USE_MATH_DEFINES']
if msvc:
cppdefines += [
'VC_EXTRALEAN',
cflags += ['-std=gnu11']
else:
cflags += ['-std=gnu99']
+ cxxflags += ['-std=c++14']
if icc:
cflags += [
'-std=gnu99',