py/misc.h: Include stdint.h only once (unconditionally at the top).
This commit is contained in:
parent
3a309d93b1
commit
946f870e3c
|
@ -107,7 +107,6 @@ size_t m_get_peak_bytes_allocated(void);
|
||||||
/** unichar / UTF-8 *********************************************/
|
/** unichar / UTF-8 *********************************************/
|
||||||
|
|
||||||
#if MICROPY_PY_BUILTINS_STR_UNICODE
|
#if MICROPY_PY_BUILTINS_STR_UNICODE
|
||||||
#include <stdint.h> // only include if we need it
|
|
||||||
// with unicode enabled we need a type which can fit chars up to 0x10ffff
|
// with unicode enabled we need a type which can fit chars up to 0x10ffff
|
||||||
typedef uint32_t unichar;
|
typedef uint32_t unichar;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue