summaryrefslogtreecommitdiff
path: root/js/src/moz.build
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-04 18:47:17 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:26 -0500
commit5e1f00240df371a1c798814bbf0f628703211a95 (patch)
tree7e6dfb5d41f6396491b43706cae24ce70e2a4e1b /js/src/moz.build
parentf87b1b8850d97eb7c9c9e5adb31594251a934441 (diff)
downloaduxp-5e1f00240df371a1c798814bbf0f628703211a95.tar.gz
Bug 1331092 - Part 0: Define NOMINMAX to avoid compile error from min/max macro on windows.
Tag #1287
Diffstat (limited to 'js/src/moz.build')
-rw-r--r--js/src/moz.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/moz.build b/js/src/moz.build
index d1e80b4ce8..1546b8351e 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -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