diff --git a/src/global.h b/src/global.h index b90f6c86c7..e8d3c1e493 100644 --- a/src/global.h +++ b/src/global.h @@ -190,6 +190,13 @@ template struct CompileAssertDecl { }; /** @brief Use RStrings throughout the program. */ typedef StdString::CStdString RString; +#if !defined(WIN32) +/** @brief Define stricmp to be strcasecmp. */ +#define stricmp strcasecmp +/** @brief Define strnicmp to be strncasecmp. */ +#define strnicmp strncasecmp +#endif + #include "RageException.h" /* Define a few functions if necessary */