[_WIN32, __GNU__]: Use <string.h> for strncasecmp for MinGW.

MinGW environment has an issue with conversion of strncasecmp()
to support _WIN32 and a definition in <string.h> for strncasecmp().
This commit is contained in:
Ron Koenderink 2006-07-11 22:30:19 +00:00
parent 4c9293f9ea
commit fa38aef700

View file

@ -53,7 +53,11 @@ typedef long ssize_t;
#define random rand #define random rand
#define srandom srand #define srandom srand
#ifdef __GNUC__
#include <string.h>
#else
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3)) #define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
#endif
#define mkdir(dir,perm) _mkdir((dir)) #define mkdir(dir,perm) _mkdir((dir))
typedef int pid_t; typedef int pid_t;