chiark / gitweb /
utils/macros.h: Refactor the GCC-ish compiler support.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 5 Jul 2017 20:23:00 +0000 (21:23 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 6 Jul 2017 08:48:25 +0000 (09:48 +0100)
commitd94956b547ca1a477e8b464c58516aca3cccccb9
treec5b80bfd44c89e58ff685e8b575597b9711c2694
parentb05d98573ee8cd415fdb77709971960665b3e431
utils/macros.h: Refactor the GCC-ish compiler support.

Fully define `GCC_VERSION_P' early, and then use it without any other
guard to define the GCC-specific hacks.  This way, it's easy to support
other compilers which behave similarly, by defining an appropriate
`FOO_VERSION_P' macro, and then adding appropriate extra alternatives to
the individual guards.

No functional changes.
utils/macros.h