dev strcasecmp

This commit is contained in:
zzy 2023-11-02 12:07:45 +08:00
parent c91872cc96
commit bdf7e9c8dd
2 changed files with 8 additions and 0 deletions

View File

@ -6,8 +6,12 @@
#include <assert.h>
#include "sysenv.h"
#if _OS_WIN
#ifndef strcasecmp
#define strcasecmp _stricmp
#endif
#ifndef strncasecmp
#define strncasecmp _strnicmp
#endif
#elif _OS_LINUX
#include <strings.h>
#else

View File

@ -18,8 +18,12 @@
#include <Winsock2.h>
#include <Ws2tcpip.h>
#include <CoreWindow.h>
#ifndef strcasecmp
#define strcasecmp _stricmp
#endif
#ifndef strncasecmp
#define strncasecmp _strnicmp
#endif
//#define socklen_t int
#elif LINUX_PART
#include <unistd.h>