New define IDSTR_NO_REDIRECT

The defines in idlib/Str.h won't be set to redirect the low
level c string functions to idStr when IDSTR_NO_REDIRECT is
set.

Fixes compilation for MSVC:
error C2761: 'Cmp' : member function redeclaration not allowed

Reported by spiral.
This commit is contained in:
dhewg 2011-12-22 03:02:29 +01:00 committed by Daniel Gibson
parent cceeb88948
commit 84d64029e5

View file

@ -40,6 +40,7 @@ If you have questions concerning this license or the applicable additional terms
*/ */
// these library functions should not be used for cross platform compatibility // these library functions should not be used for cross platform compatibility
#ifndef IDSTR_NO_REDIRECT
#define strcmp idStr::Cmp // use_idStr_Cmp #define strcmp idStr::Cmp // use_idStr_Cmp
#define strncmp use_idStr_Cmpn #define strncmp use_idStr_Cmpn
@ -76,6 +77,7 @@ If you have questions concerning this license or the applicable additional terms
#define _snprintf use_idStr_snPrintf #define _snprintf use_idStr_snPrintf
#define vsnprintf use_idStr_vsnPrintf #define vsnprintf use_idStr_vsnPrintf
#define _vsnprintf use_idStr_vsnPrintf #define _vsnprintf use_idStr_vsnPrintf
#endif
class idVec4; class idVec4;