From f53d02f0bb139e0fee5a7fcdfd9da81fc4f9169b Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 28 Jan 2019 09:44:35 -0500 Subject: [PATCH] Windows build bit --- include/ntconf.h | 2 ++ sys/winnt/Makefile.msc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ntconf.h b/include/ntconf.h index af41154c0..094c50c73 100644 --- a/include/ntconf.h +++ b/include/ntconf.h @@ -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 */ diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc index ef7b6258e..97001da6e 100644 --- a/sys/winnt/Makefile.msc +++ b/sys/winnt/Makefile.msc @@ -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 -- 2.40.0