chore(build): migrate to system lib

This commit is contained in:
fallenoak 2020-12-02 20:04:02 -06:00
parent aa616b75b5
commit 6ac442e473
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
16 changed files with 54 additions and 60 deletions

View file

@ -8,11 +8,11 @@
#include <cstdio>
#include <cstring>
#if defined(WHOA_PLATFORM_WIN)
#if defined(WHOA_SYSTEM_WIN)
#include <string.h>
#endif
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
#include <strings.h>
#endif
@ -243,11 +243,11 @@ int32_t SStrCmp(const char* string1, const char* string2, size_t maxchars) {
}
int32_t SStrCmpI(const char* string1, const char* string2, size_t maxchars) {
#if defined(WHOA_PLATFORM_WIN)
#if defined(WHOA_SYSTEM_WIN)
return _strnicmp(string1, string2, maxchars);
#endif
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
return strncasecmp(string1, string2, maxchars);
#endif
}