From: Mark Wooding Date: Wed, 5 Jul 2017 20:23:00 +0000 (+0100) Subject: utils/macros.h: Refactor the GCC-ish compiler support. X-Git-Tag: 2.2.4~10 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/d94956b547ca1a477e8b464c58516aca3cccccb9?hp=d94956b547ca1a477e8b464c58516aca3cccccb9 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. ---