MSVC: remove gcc-ism for Visual Studio
MSVC does not have __attribute__((foo))
This commit is contained in:
@@ -68,8 +68,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
/* A hack (GCC-specific?) to allow us to ignore unused parameters. */
|
/* A hack (GCC-specific?) to allow us to ignore unused parameters. */
|
||||||
#define UNUSED(arg) __attribute__((unused))arg
|
#define UNUSED(arg) __attribute__((unused))arg
|
||||||
|
#else
|
||||||
|
/* MSVC does not have __attribute__((unused)). */
|
||||||
|
#define UNUSED(arg) arg
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return the size (in wchar's) of a wchar_t array. */
|
/* Return the size (in wchar's) of a wchar_t array. */
|
||||||
#define sizeof_w(x) (sizeof((x)) / sizeof(wchar_t))
|
#define sizeof_w(x) (sizeof((x)) / sizeof(wchar_t))
|
||||||
|
|||||||
Reference in New Issue
Block a user