mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 11:36:25 +00:00
common: fix compatibility issue for MSVC.
__attribute__ syntax is not supported by MSVC. We can turn it on optionally.
This commit is contained in:
parent
87b94b7a7f
commit
53576d3939
1 changed files with 5 additions and 1 deletions
|
@ -31,6 +31,10 @@ using namespace tvg;
|
||||||
#define FILL_ID_LINEAR 0
|
#define FILL_ID_LINEAR 0
|
||||||
#define FILL_ID_RADIAL 1
|
#define FILL_ID_RADIAL 1
|
||||||
|
|
||||||
#define TVG_UNUSED __attribute__ ((__unused__))
|
#ifdef _MSC_VER
|
||||||
|
#define TVG_UNUSED
|
||||||
|
#else
|
||||||
|
#define TVG_UNUSED __attribute__ ((__unused__))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif //_TVG_COMMON_H_
|
#endif //_TVG_COMMON_H_
|
||||||
|
|
Loading…
Add table
Reference in a new issue