I have a Eclipse workspace with several C projects: Project1, Project2, Project3, ... Project2, Project3, etc. all include a header from Project1. This header is heavy on preprocessor directives, such as:
#ifdef OPTION1
typedef MY_INT int;
#endif
To make Eclipse find MY_INT
in the code in Project2, Project3, I currently have to add the preprocessor definition OPTION1
for each project separately.
Is there a way to define OPTION1
globally, just once, for all the projects in the workspace.