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;