From a5a51814a195ef5494f1ac3dff4088db7e75f61b Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 1 Dec 2018 09:41:22 -0500 Subject: [PATCH] get rid of some gcc warnings with Windows build --- include/ntconf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ntconf.h b/include/ntconf.h index bf98fec65..6859d52b0 100644 --- a/include/ntconf.h +++ b/include/ntconf.h @@ -5,7 +5,7 @@ #ifndef NTCONF_H #define NTCONF_H -/* #define SHELL /* nt use of pcsys routines caused a hang */ +/* #define SHELL */ /* nt use of pcsys routines caused a hang */ #define RANDOM /* have Berkeley random(3) */ #define TEXTCOLOR /* Color text */ @@ -43,7 +43,7 @@ * The remaining code shouldn't need modification. * ----------------------------------------------------------------- */ -/* #define SHORT_FILENAMES /* All NT filesystems support long names now +/* #define SHORT_FILENAMES */ /* All NT filesystems support long names now */ #ifdef MICRO @@ -143,12 +143,14 @@ extern void FDECL(interject, (int)); #define strncmpi(a, b, c) strnicmp(a, b, c) #endif +#ifdef _MSC_VER /* Visual Studio defines this in their own headers, which we don't use */ #ifndef snprintf #define snprintf _snprintf #pragma warning( \ disable : 4996) /* deprecation warning suggesting snprintf_s */ #endif +#endif #include #include