Missing #include <stddef.h> in sysmem.c
Opened this issue · 0 comments
blackbird998 commented
Hi,
In sysmem.c
files from Projects/
Templates/Examples <stddef.h>
is not included directly (it provides NULL
and ptrdiff_t
).
In STM32CubeCTL_1.17.0 GNU-tools-for-STM32 arm-none-eabi implementation it is included indirectly by <errno.h>
-> <sys/errno.h>
-> <sys/reent.h>
-> <stddef.h>
, but this is not the case in e.g. LLVM-ET-Arm-19.1.1 implementation and can rise compile errors.
It could be fixed by directly including <stddef.h>
in sysmem.c
files.
Kind regards,
Adam