common: fix compatibility issue for MSVC.

__attribute__ syntax is not supported by MSVC.

We can turn it on optionally.
This commit is contained in:
Hermet Park 2021-06-23 13:41:58 +09:00 committed by Hermet Park
parent 87b94b7a7f
commit 53576d3939

View file

@ -31,6 +31,10 @@ using namespace tvg;
#define FILL_ID_LINEAR 0
#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_