Add malloc.h into StandardCLibrary.h.#1835
Conversation
|
Per the standard, Footnotes |
|
@ahuo-dev Could you share what environment you were trying to solve what problem, then we can look at whether this is the best fix. |
|
|
Ok, but the include of #malloc.h in the CommonDef.h shouldn't need to trigger you to include it in the SatndardCLibrary.h, right? Could you share what the compile error is that you are getting? |
Compile error message : and run command "gcc -E " to expand all macro. I see malloc function prototype expand to cpputest_malloc_location, like this : 38 "/usr/include/malloc.h"38 "/usr/include/malloc.h" 3 438 "/usr/include/malloc.h"38 "/usr/include/malloc.h" 3 4Normally it should be like this: |
Add malloc.h into StandardCLibrary.h. Some C code include malloc.h for malloc func.