Community
Participate
Working Groups
Created attachment 236022 [details] Project for recreate the bug Lets say I have file a.h #ifndef A_H_ #define A_H_ #define SYMBOL 1 #endif And file common.h #ifndef COMMON_H_ #define COMMON_H_ #if !defined(SYMBOL) #define SYMBOL 2 #endif #define COMMON #endif If I have file a.c: #include "a.h" #include "common.h" int* a = SYMBOL; and b.c: #include "common.h" int* b = SYMBOL; b.c will say the SYMBOL is undefined. This does not matter whether or not it is in the form of #ifndef SYMBOL or #if !defined(SYMBOL)