added case insensitive string comparison macro

This commit is contained in:
mathewmarcus 2018-07-04 14:23:17 -05:00
parent 98a233fc40
commit c46019cc62

View file

@ -108,5 +108,18 @@ int debug(int class,char *format,...);
#define UNIMPLEMENTED do { fprintf(stderr,"Function %s unimplemented\n",__FUNCTION__); abort(); } while(0)
#ifdef STDC_HEADERS
#include <string.h>
#endif
#ifndef STRNICMP
#ifdef _WIN32
#define STRNICMP(a,b,n) strnicmp(a,b,n)
#else
#define STRNICMP(a,b,n) strncasecmp(a,b,n)
#endif
#endif
#endif