Fix compile errors and get rid of glib dependency

This commit is contained in:
Cacodemon345
2021-08-22 22:37:37 +06:00
parent 39fea69d5c
commit f6af2b0162
3 changed files with 38 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
#else
/* Declare these functions to avoid warnings. They will redirect to strcasecmp and strncasecmp respectively. */
extern int stricmp(const char* s1, const char* s2);
extern int strnicmp(const char* s1, const char* s2, int n);
extern int strnicmp(const char* s1, const char* s2, size_t n);
#endif
#if defined(UNIX) && defined(FREEBSD) || defined(__APPLE__)