mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Make strrstr static
This commit is contained in:
parent
c9e637d957
commit
64646c5bd1
@ -2,8 +2,7 @@
|
||||
#include "util.h"
|
||||
#include "cbase.h"
|
||||
#include "player.h"
|
||||
#include "coop_util.h"
|
||||
|
||||
#include "coop_util.h""
|
||||
|
||||
GlobalMenu g_GlobalMenu;
|
||||
|
||||
@ -814,12 +813,11 @@ bool UTIL_CoopConfirmMenu(CBaseEntity *pTrigger, CBaseEntity *pActivator, int co
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
// Shitty windows does not even have this!!!!!!!
|
||||
|
||||
|
||||
#include <string.h>
|
||||
/* @NOPEDANTRY: ignore use of reserved identifier */
|
||||
char *strrstr(const char *x, const char *y) {
|
||||
static char *strrstr(const char *x, const char *y) {
|
||||
char *prev = NULL;
|
||||
char *next;
|
||||
if (*y == '\0')
|
||||
@ -830,7 +828,7 @@ x = next + 1;
|
||||
}
|
||||
return prev;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int UTIL_CheckForEntTools( edict_t *pent )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user