strncasecmp for WIN32

This commit is contained in:
Thomas Bernard 2015-08-28 14:29:20 +02:00
parent ead5afaaeb
commit e5eabdb3d7
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,13 @@
#include <io.h>
#include <winsock.h>
#include <stdint.h>
#ifndef strncasecmp
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
#define strncasecmp _memicmp
#else /* defined(_MSC_VER) && (_MSC_VER >= 1400) */
#define strncasecmp memicmp
#endif /* defined(_MSC_VER) && (_MSC_VER >= 1400) */
#endif /* #ifndef strncasecmp */
#endif
#if defined(__amigaos__) || defined(__amigaos4__)
#include <sys/socket.h>