Closed Barabas5532 closed 1 year ago
@Barabas5532 the esp_log.h includes definition for the stdlib.h. And, we not include stdlib.h if we not use functions from them.
Relying on that transitive include is bad practice. If esp_log.h is changed to no longer include stdlib.h then the esp-dsp project will break too. This is exactly what happened for me by replacing esp_log.h with a stub version.
I only added the stdlib include to files that were causing compiler errors due to missing declaration of malloc.
@Barabas5532 agree about mallock, now, in master we have dsps_fft4r_fc32_ansi.c
. I will add it.
Thank you, Barabas.
Some files use
malloc
without includingstdlib.h
. It works on esp32 by some transitive include, but breaks when trying to compile for Linux with a customizedCMakeLists.txt
.