From 5e1f00240df371a1c798814bbf0f628703211a95 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Wed, 4 Dec 2019 18:47:17 -0500 Subject: Bug 1331092 - Part 0: Define NOMINMAX to avoid compile error from min/max macro on windows. Tag #1287 --- js/src/moz.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/moz.build b/js/src/moz.build index d1e80b4ce..1546b8351 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 -- cgit v1.2.3