]> granicus.if.org Git - nethack/commitdiff
Windows build bit
authornhmall <nhmall@nethack.org>
Mon, 28 Jan 2019 14:44:35 +0000 (09:44 -0500)
committernhmall <nhmall@nethack.org>
Mon, 28 Jan 2019 14:44:35 +0000 (09:44 -0500)
include/ntconf.h
sys/winnt/Makefile.msc

index af41154c0af1bc4aa6da30398b46c438b25b5fa3..094c50c7371b353cf012ebfbcbc2103b9457e87c 100644 (file)
@@ -128,7 +128,9 @@ extern void FDECL(interject, (int));
 /* suppress a warning in cppregex.cpp */
 #pragma warning(disable : 4101) /* unreferenced local variable */
 #endif
+#ifndef HAS_STDINT_H
 #define HAS_STDINT_H    /* force include of stdint.h in integer.h */
+#endif
 #endif /* _MSC_VER */
 
 /* The following is needed for prototypes of certain functions */
index ef7b6258ebab3ef2aa267dcc00cf382c62785720..97001da6e1f061b3233080020a3b86193e8cbef7 100644 (file)
@@ -464,7 +464,8 @@ CURSESLIB=
 
 ccommon= -c -nologo -D"_CONSOLE" -D"_CRT_NONSTDC_NO_DEPRECATE" -D"_CRT_SECURE_NO_DEPRECATE" \
        -D"_LIB" -D"_SCL_SECURE_NO_DEPRECATE" -D"_VC80_UPGRADE=0x0600" -D"DLB" -D"_MBCS" \
-       -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -D"NDEBUG" -D"YY_NO_UNISTD_H" $(CURSESDEF) \
+       -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -D"NDEBUG" -D"YY_NO_UNISTD_H" \
+       -DHAS_STDINT_H -DHAS_INLINE $(CURSESDEF) \
        -EHsc -fp:precise -Gd -GF -GS -Gy \
        $(CL_RECENT) -WX- -Zc:forScope -Zc:wchar_t -Zi
 cdebug= -analyze- -D"_DEBUG" -Gm -MTd -RTC1 -Od