Consider the following code where test.h attempts to include the file "signal.h" using braced include.
Signal.h:
#define xyz 5
int testvar;
test.h:
#if !defined (_C1)
#define _C1
#include <signal.h>
int testvar2;
#endif
test.cpp:
#include "test.h"
If you compile with:
g++ -dD -E test.cpp -o C1.i
All is fine and the system signal.h is pre-pended to test.cpp. However, if you compile with:
g++ -dD -E -I. test.cpp -o C1.i
The local Signal.h is pre-pended, even if it has a different case.
Is this intended behavior? This is affecting gcc-4.7, gcc-5.4 on an Ubuntu.
Thank you