https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70073
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, unless you undefine __GNUC__ macro, it should be predefined and therefore #if !defined(__GNUC__) && !defined(__attribute__) #define __attribute__(x) #endif shouldn't do anything when compiling by GCC. But perhaps it is ./source4/heimdal/lib/roken/roken-common.h-#ifndef HAVE___ATTRIBUTE__ ./source4/heimdal/lib/roken/roken-common.h:#define __attribute__(x) ./source4/heimdal/lib/roken/roken-common.h-#endif instead? Best if you preprocess with -E -dD and look at where this happens...