Compile fixes (mostly focused on windows)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5534 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-09-05 00:01:01 +00:00
parent 5fa6e12d56
commit 018afede9a

View file

@ -783,14 +783,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define FTE_UNREACHABLE Sys_Error("Unreachable reached: %s %i\n", __FILE__, __LINE__) #define FTE_UNREACHABLE Sys_Error("Unreachable reached: %s %i\n", __FILE__, __LINE__)
#endif #endif
#ifdef _WIN32 #ifndef stricmp
//Windows-specific... #ifdef _WIN32
#define stricmp _stricmp //Windows-specific...
#define strnicmp _strnicmp #define stricmp _stricmp
#else #define strnicmp _strnicmp
//Posix #else
#define stricmp strcasecmp //Posix
#define strnicmp strncasecmp #define stricmp strcasecmp
#define strnicmp strncasecmp
#endif
#endif #endif