I have a project with a config.h file that controls several things in my source. I want to make sure that all my files include it. Sometimes I forget to include it in new files, which means that things that were supposed to be conditionally compiled get compiled when they shouldn't and vice-versa, and that creates all kinds of problems. Sometimes it takes a while to trace the problem back to the fact that I forgot the include.
Is there any way to make sure that all my files include a certain header file? My code gets compiled by gcc, clang and visual c++, and I'd relly prefer a cross-compiler and build system solution to this.