Try to prevent type definition conflicts with standard headers

ugfx_release_2.6
inmarket 2014-07-15 14:38:49 +10:00
parent 8c47f68f66
commit 679961a25e
1 changed files with 13 additions and 7 deletions

View File

@ -42,14 +42,20 @@
/*===========================================================================*/
typedef unsigned char bool_t;
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef uint32_t size_t;
#ifndef _STDINT_H
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
#endif
#if !defined (__need_size_t) && !defined (_STDDEF_H_)
typedef uint32_t size_t;
#endif
typedef uint32_t delaytime_t;
typedef uint32_t systemticks_t;
typedef short semcount_t;