diff --git a/common/include/r_macros.h b/common/include/r_macros.h index fa1b318..0a9e565 100644 --- a/common/include/r_macros.h +++ b/common/include/r_macros.h @@ -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 +#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