I would be even happier when we also could remove the '#include "compat.h"' from main.h somehow, but I had no good (and working) idea.
Hi Sven
Could you build solution using the gcc option:
-include file
Process file as if #include "file" appeared as the first line of the primary source file.
Pass this when compiling out of tree by appending it to CFLAGS? The hard thing is the ordering. compat.h will be first, before all other header files.
Andrew