summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-02-05 15:45:38 +1100
committerDamien George <damien@micropython.org>2021-02-05 15:46:56 +1100
commit9dedcf122d19c6b7452adb48ff5567509adfb073 (patch)
treef7823e7a4c146078da6d3c4b7d0a91c1ead96eef
parent1f800cac3c4f56418486f24c3824418a890f759f (diff)
py/gc: Change include of stdint.h to stddef.h.
No std-int types are used in gc.h, but size_t is which needs stddef.h. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/esp8266/gccollect.h2
-rw-r--r--py/gc.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/ports/esp8266/gccollect.h b/ports/esp8266/gccollect.h
index 4323e9507..b86d3d6e1 100644
--- a/ports/esp8266/gccollect.h
+++ b/ports/esp8266/gccollect.h
@@ -26,6 +26,8 @@
#ifndef MICROPY_INCLUDED_ESP8266_GCCOLLECT_H
#define MICROPY_INCLUDED_ESP8266_GCCOLLECT_H
+#include <stdint.h>
+
extern uint32_t _text_start;
extern uint32_t _text_end;
extern uint32_t _irom0_text_start;
diff --git a/py/gc.h b/py/gc.h
index f67fb0daa..5aef27c00 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -27,7 +27,7 @@
#define MICROPY_INCLUDED_PY_GC_H
#include <stdbool.h>
-#include <stdint.h>
+#include <stddef.h>
void gc_init(void *start, void *end);