From: curt Date: Fri, 17 May 2002 14:38:03 +0000 (+0000) Subject: Bernie Bright: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=128a4a36cacdbfbc412b15a6b1f069c25df8d5d8;p=simgear.git Bernie Bright: I've defined snprintf as _snprintf in compiler.h for MSVC and MINGW targets and removed duplicate definitions from FG sources. --- 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