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
If you strive for redirecting malloc() calls to a custom function I would rather recommend to provide your custom code via pre-loading of your implementation at runtime. See this question for details.