Bug 1331092 - Part 0: Define NOMINMAX to avoid compile error from min/max macro on windows.

Tag #1287
This commit is contained in:
Gaming4JC 2019-12-04 18:47:17 -05:00 committed by Roy Tam
commit e9ad9eab15

View file

@ -790,3 +790,6 @@ if CONFIG['GNU_CXX']:
# Suppress warnings in third-party code.
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough']
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['NOMINMAX'] = True