_GNU_SOURCE can be defined without defining REG_X macros so it is not a good indicator. (QEMU for example defines it in the build system.) x86 and x86_64 should have consistant looking defs.h so ifndef guards are added to each REG_X definition.