From 57e0ce7b4ffce8cf41bd3003831198d0bb38ebf2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 20 Mar 2021 11:21:20 +0100 Subject: Use `#if defined()` syntax when `#elif defined()` is present This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent. --- Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Macros.h') diff --git a/Macros.h b/Macros.h index 31ba37b5..736d31c5 100644 --- a/Macros.h +++ b/Macros.h @@ -52,7 +52,7 @@ // ignore casts discarding const specifier, e.g. // const char [] -> char * / void * // const char *[2]' -> char *const * -#ifdef __clang__ +#if defined(__clang__) #define IGNORE_WCASTQUAL_BEGIN _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wcast-qual\"") #define IGNORE_WCASTQUAL_END _Pragma("clang diagnostic pop") -- cgit v1.2.3