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.
This commit is contained in:
Benny Baumann
2021-03-20 11:21:20 +01:00
committed by cgzones
parent 1cb3aee07a
commit 57e0ce7b4f
5 changed files with 6 additions and 6 deletions

View File

@ -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")