simplify safe logic

This commit is contained in:
Lee Thomason (grinliz) 2012-04-06 21:27:10 -07:00
parent a4a36ba3c2
commit b9e791fa4e
1 changed files with 1 additions and 4 deletions

View File

@ -88,14 +88,11 @@ distribution.
return result; return result;
} }
#define TIXML_SSCANF sscanf_s #define TIXML_SSCANF sscanf_s
#elif defined(__GNUC__) && (__GNUC__ >= 3 ) #else
// GCC version 3 and higher // GCC version 3 and higher
//#warning( "Using sn* functions." ) //#warning( "Using sn* functions." )
#define TIXML_SNPRINTF snprintf #define TIXML_SNPRINTF snprintf
#define TIXML_SSCANF sscanf #define TIXML_SSCANF sscanf
#else
#define TIXML_SNPRINTF snprintf( buf, size, x ) snprintf( buf, size, x )
#define TIXML_SSCANF sscanf
#endif #endif
static const int TIXML2_MAJOR_VERSION = 0; static const int TIXML2_MAJOR_VERSION = 0;