diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-14 15:13:02 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-14 15:13:02 +0200 |
commit | f31f7960bd260cb90ffdd766393d51bd85a547d1 (patch) | |
tree | 6a9404909186c22c6bc989624b2488830e50e64e /src/libc/stdint.h | |
parent | 36bc53591247bbd16e42bbf7d5d4744a5416dfa8 (diff) | |
download | abaos-f31f7960bd260cb90ffdd766393d51bd85a547d1.tar.gz abaos-f31f7960bd260cb90ffdd766393d51bd85a547d1.tar.bz2 |
removed stddef.h and limits.h (come with the compiler header files)
added a stub stdint.h (only sometimes comes with the compiler)
added a guide on cross compiling
adapted to cross compilation, for now tcc works
Diffstat (limited to 'src/libc/stdint.h')
-rw-r--r-- | src/libc/stdint.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libc/stdint.h b/src/libc/stdint.h new file mode 100644 index 0000000..e0f35b6 --- /dev/null +++ b/src/libc/stdint.h @@ -0,0 +1,15 @@ +#ifndef STDINT_H +#define STDINT_H + +#if defined( __PCC__ ) || defined( __TINYC__ ) +// TODO: no stdint.h in pcc-libs/pcc or tcc, mock one, but this one is +// most likely very incorrect +typedef unsigned int uint32_t; +typedef signed int int32_t; +typedef unsigned short uint16_t; +typedef signed short int16_t; +typedef unsigned char uint8_t; +typedef signed char int8_t; +#endif + +#endif // STDINT_H |