[_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:
parent
4c9293f9ea
commit
fa38aef700
1 changed files with 4 additions and 0 deletions
|
@ -53,7 +53,11 @@ typedef long ssize_t;
|
|||
#define random rand
|
||||
#define srandom srand
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <string.h>
|
||||
#else
|
||||
#define strncasecmp(s1, s2, s3) _strnicmp((s1), (s2), (s3))
|
||||
#endif
|
||||
#define mkdir(dir,perm) _mkdir((dir))
|
||||
|
||||
typedef int pid_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue