common: fix compatibility issue for MSVC.

strcasecmp() is not supported by MSVC

We can replace it with _stricmp()

thanks @fire for pointing out this.
This commit is contained in:
Hermet Park 2021-06-23 14:50:46 +09:00 committed by Hermet Park
parent 53576d3939
commit 4f35c478c2

View file

@ -31,10 +31,14 @@ using namespace tvg;
#define FILL_ID_LINEAR 0
#define FILL_ID_RADIAL 1
//for MSVC Compat
#ifdef _MSC_VER
#define TVG_UNUSED
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#else
#define TVG_UNUSED __attribute__ ((__unused__))
#endif
#endif //_TVG_COMMON_H_
#endif //_TVG_COMMON_H_