Issue #370: work around Clang-on-windows oddities by rearranging ifdefs.
This commit is contained in:
1 parent
c9c84ca7ee
commit
ac09581cc2
1 file changed
+2
-2
+2
-2
@@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))
|
#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))
|
||||||
#elif defined(__clang__)
|
|
||||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func __deprecated
|
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define THIS_FUNCTION_IS_DEPRECATED(func) __declspec(deprecated) func
|
#define THIS_FUNCTION_IS_DEPRECATED(func) __declspec(deprecated) func
|
||||||
|
#elif defined(__clang__)
|
||||||
|
#define THIS_FUNCTION_IS_DEPRECATED(func) func __deprecated
|
||||||
#else
|
#else
|
||||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func
|
#define THIS_FUNCTION_IS_DEPRECATED(func) func
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user