From b9e791fa4e4950143f7bbe9a86351cc7abc7490a Mon Sep 17 00:00:00 2001 From: "Lee Thomason (grinliz)" Date: Fri, 6 Apr 2012 21:27:10 -0700 Subject: [PATCH] simplify safe logic --- tinyxml2.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index f9348ab..251d2ad 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -88,14 +88,11 @@ distribution. return result; } #define TIXML_SSCANF sscanf_s -#elif defined(__GNUC__) && (__GNUC__ >= 3 ) +#else // GCC version 3 and higher //#warning( "Using sn* functions." ) #define TIXML_SNPRINTF snprintf #define TIXML_SSCANF sscanf -#else - #define TIXML_SNPRINTF snprintf( buf, size, x ) snprintf( buf, size, x ) - #define TIXML_SSCANF sscanf #endif static const int TIXML2_MAJOR_VERSION = 0;