From 39fea69d5c13bf47dc6191173a65f94de4e50b89 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 22 Aug 2021 20:50:05 +0600 Subject: [PATCH] Fix warnings --- src/include/86box/plat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/86box/plat.h b/src/include/86box/plat.h index 497123799..02f7737f8 100644 --- a/src/include/86box/plat.h +++ b/src/include/86box/plat.h @@ -30,6 +30,10 @@ #ifdef _WIN32 # define wcscasecmp _wcsicmp # define strcasecmp _stricmp +#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); #endif #if defined(UNIX) && defined(FREEBSD) || defined(__APPLE__)