mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-25 05:51:15 +00:00
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:
parent
cceeb88948
commit
84d64029e5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
#ifndef IDSTR_NO_REDIRECT
|
||||
#define strcmp idStr::Cmp // use_idStr_Cmp
|
||||
#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 vsnprintf use_idStr_vsnPrintf
|
||||
#define _vsnprintf use_idStr_vsnPrintf
|
||||
#endif
|
||||
|
||||
class idVec4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue