Fix gcc build errors & warnings

This commit is contained in:
Alexander 'z33ky' Hirsch
2021-04-25 22:00:08 +02:00
parent 5eda2f692f
commit dddcf642aa
13 changed files with 91 additions and 70 deletions

View File

@@ -470,6 +470,16 @@ inline void V_wcscat( INOUT_Z_CAP(cchDest) wchar_t *dest, const wchar_t *src, in
V_wcsncat( dest, src, cchDest, COPY_ALL_CHARACTERS );
}
// Reentrant strtok
inline static char* V_strtok_s( char *str, const char *delimiters, char **context )
{
#ifdef _MSC_VER
return strtok_s( str, delimiters, context );
#elif POSIX
return strtok_r( str, delimiters, context );
#endif
}
//-----------------------------------------------------------------------------
// generic unique name helper functions
//-----------------------------------------------------------------------------