From 128a4a36cacdbfbc412b15a6b1f069c25df8d5d8 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 17 May 2002 14:38:03 +0000 Subject: [PATCH] Bernie Bright: I've defined snprintf as _snprintf in compiler.h for MSVC and MINGW targets and removed duplicate definitions from FG sources. --- simgear/compiler.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/simgear/compiler.h b/simgear/compiler.h index 9d6136f2..7896c4a3 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -153,6 +153,7 @@ #if defined( __MINGW32__ ) # define bcopy(from, to, n) memcpy(to, from, n) # define FG_MEM_COPY(to,from,n) memcpy(to, from, n) +# define snprintf _snprintf #endif /* KAI C++ */ @@ -235,18 +236,7 @@ # define STL_STRING # define STL_STRSTREAM -# define SG_NO_INCLASS_MEMBER_INITIALIZATION - -// disable min/max macros if defined: -// # ifdef min -// # undef min -// # endif -// # ifdef max -// # undef max -// # endif -// # ifndef NOMINMAX -// # define NOMINMAX -// # endif +# define snprintf _snprintf # pragma warning(disable: 4786) // identifier was truncated to '255' characters # pragma warning(disable: 4244) // conversion from double to float -- 2.39.5