mirror of https://github.com/AxioDL/tinyxml2.git
simplify safe logic
This commit is contained in:
parent
a4a36ba3c2
commit
b9e791fa4e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue