Improving type definition inclusion in RAW32 port

This commit is contained in:
Joel Bodenmann 2015-07-02 21:57:14 +02:00
parent 2c6b82040d
commit 81850ade15

View File

@ -43,7 +43,9 @@
typedef unsigned char bool_t;
#if !defined(_STDINT_H) && !defined(__stdint_h)
#if __STDC_VERSION__ >= 199901L
#include <stdint.h>
#else
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed short int16_t;
@ -52,7 +54,9 @@ typedef unsigned char bool_t;
typedef unsigned int uint32_t;
#endif
#if !defined (__need_size_t) && !defined (_STDDEF_H_) && !defined(__stddef_h)
#if defined(__STDC__)
#include <stddef.h>
#else
typedef uint32_t size_t;
#endif