diff options
Diffstat (limited to 'src/doomdef.h')
-rw-r--r-- | src/doomdef.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/doomdef.h b/src/doomdef.h index bcd27e27..08d06422 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -31,6 +31,21 @@ #include <stdio.h> #include <string.h> +// Portable header to provide the strcasecmp/strncasecmp functions. +// On Windows, stricmp/strnicmp is used as a replacement. + +#ifdef _WIN32 + +#define strcasecmp stricmp +#define strncasecmp strnicmp + +#else + +#include <strings.h> + +#endif + + // // The packed attribute forces structures to be packed into the minimum // space necessary. If this is not done, the compiler may align structure |