mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
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:
parent
53576d3939
commit
4f35c478c2
1 changed files with 5 additions and 1 deletions
|
@ -31,10 +31,14 @@ using namespace tvg;
|
||||||
#define FILL_ID_LINEAR 0
|
#define FILL_ID_LINEAR 0
|
||||||
#define FILL_ID_RADIAL 1
|
#define FILL_ID_RADIAL 1
|
||||||
|
|
||||||
|
|
||||||
|
//for MSVC Compat
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define TVG_UNUSED
|
#define TVG_UNUSED
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define strcasecmp _stricmp
|
||||||
#else
|
#else
|
||||||
#define TVG_UNUSED __attribute__ ((__unused__))
|
#define TVG_UNUSED __attribute__ ((__unused__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif //_TVG_COMMON_H_
|
#endif //_TVG_COMMON_H_
|
Loading…
Add table
Reference in a new issue