I need to include a #define at the top of around 300 .c files. I would prefer not to change the code as it is open source code but if I have to I will just wri
#define
gcc option -D:
-D
-D name Predefine name as a macro, with definition 1. -D name=definition ....
so, in your case, gcc ... -Dmalloc=MYmalloc
gcc ... -Dmalloc=MYmalloc