Thanks for your reply.
The reason I want to do this, is to be able to switch part of code on or off by defining preprocessor macros in the forced include file. I know these conditional defines can be defined in the project options, but I find it easier and much clearer when I can switch these defines on or off in the forced include file. Besides, when I use more than one compiler I only have to change the forced include file and not all compiler- or IDE-specific project settings. FYI: I am using the Borland compiler to build a PC-simulation of my app, while I am using another compiler for building the embbedded app. version.
My experiences are that more compilers, like the Microsoft C++ compiler and the IAR compiler I use for our embbedded platform, offer this option. But it seems, unfortunately, that Borland does not offer such an option
I could include the forced include file (also called preinclude file) in each source file myself, but I hoped (and still hope) there is an option to do this automatically....