1--- misc/nss-3.39/nspr/configure 2+++ misc/build/nss-3.39/nspr/configure 3@@ -7300,15 +7300,27 @@ 4 if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then 5 CFLAGS="$CFLAGS -arch:IA32" 6 fi 7 fi 8 ;; 9 x86_64) 10- $as_echo "#define _AMD64_ 1" >>confdefs.h 11- 12- USE_64=1 13+ if test -z "$USE_64"; then 14+ # config.guess reports the HOST, and every Windows build host is 15+ # x86_64 now, so reaching this case says nothing about what is 16+ # being BUILT. Without --enable-64bit a 32-bit product was asked 17+ # for, and defining _AMD64_ for one is not merely cosmetic: the 18+ # Windows 10 SDK selects the Interlocked* declarations on these 19+ # macros, so an x86 compile with _AMD64_ set gets no declaration 20+ # at all, calls them as cdecl, and fails to link. 21+ $as_echo "#define _X86_ 1" >>confdefs.h 22+ 23+ else 24+ $as_echo "#define _AMD64_ 1" >>confdefs.h 25+ 26+ USE_64=1 27+ fi 28 ;; 29 ia64) 30 $as_echo "#define _IA64_ 1" >>confdefs.h 31 32 USE_64=1 33 ;; 34