mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
Try to fix compiling in msvc, and try to avoid the issue in future too.
This commit is contained in:
parent
85e9399f2f
commit
402fedb147
2 changed files with 7 additions and 2 deletions
|
@ -159,6 +159,11 @@ extern char *q_strupr (char *str);
|
||||||
extern int q_snprintf (char *str, size_t size, const char *format, ...) FUNC_PRINTF(3,4);
|
extern int q_snprintf (char *str, size_t size, const char *format, ...) FUNC_PRINTF(3,4);
|
||||||
extern int q_vsnprintf(char *str, size_t size, const char *format, va_list args) FUNC_PRINTF(3,0);
|
extern int q_vsnprintf(char *str, size_t size, const char *format, va_list args) FUNC_PRINTF(3,0);
|
||||||
|
|
||||||
|
#define strcasecmp brokeninmsvc
|
||||||
|
#define stricmp brokenportability
|
||||||
|
#define strncasecmp brokeninmsvc
|
||||||
|
#define strnicmp brokenportability
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
extern char com_token[1024];
|
extern char com_token[1024];
|
||||||
|
|
|
@ -1214,7 +1214,7 @@ enum srcformat TexMgr_FormatForName (const char *code)
|
||||||
{
|
{
|
||||||
if (!compressedformats[i].formatname)
|
if (!compressedformats[i].formatname)
|
||||||
continue;
|
continue;
|
||||||
if (!strcasecmp(code, compressedformats[i].formatname))
|
if (!q_strcasecmp(code, compressedformats[i].formatname))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return SRC_EXTERNAL;
|
return SRC_EXTERNAL;
|
||||||
|
@ -1226,7 +1226,7 @@ enum srcformat TexMgr_FormatForCode (const char *code)
|
||||||
{
|
{
|
||||||
if (!compressedformats[i].mipextname)
|
if (!compressedformats[i].mipextname)
|
||||||
continue;
|
continue;
|
||||||
if (!strncasecmp(code, compressedformats[i].mipextname, 4))
|
if (!q_strncasecmp(code, compressedformats[i].mipextname, 4))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return SRC_EXTERNAL;
|
return SRC_EXTERNAL;
|
||||||
|
|
Loading…
Reference in a new issue