diff options
| author | Bernard Xiong <[email protected]> | 2017-10-16 19:16:10 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2017-10-16 19:16:10 +0800 |
| commit | 591339e7a85e9e8f8dae01c583cff15768025e82 (patch) | |
| tree | ed8538f946290941b996c6abafa0366eb301f601 /components/libc/compilers | |
| parent | f47898bb17e9542d56fd0cbdf8e917d2b28d69fd (diff) | |
[BSP] fix compiling issue
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/minilibc/stdint.h | 2 | ||||
| -rw-r--r-- | components/libc/compilers/minilibc/stdio.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/components/libc/compilers/minilibc/stdint.h b/components/libc/compilers/minilibc/stdint.h index f397b57bc5..eaafb3d2a5 100644 --- a/components/libc/compilers/minilibc/stdint.h +++ b/components/libc/compilers/minilibc/stdint.h @@ -11,6 +11,8 @@ typedef rt_int32_t int32_t; typedef rt_uint32_t uint32_t; typedef long long int64_t; typedef unsigned long long uint64_t; +typedef signed long intptr_t; +typedef unsigned long uintptr_t; /* * 7.18.2 Limits of specified-width integer types. diff --git a/components/libc/compilers/minilibc/stdio.h b/components/libc/compilers/minilibc/stdio.h index 160b4d2c78..a6ecb32931 100644 --- a/components/libc/compilers/minilibc/stdio.h +++ b/components/libc/compilers/minilibc/stdio.h @@ -4,5 +4,15 @@ #define BUFSIZ 128 #define EOF (-1) +#ifndef SEEK_SET +#define SEEK_SET 0 /* set file offset to offset */ +#endif +#ifndef SEEK_CUR +#define SEEK_CUR 1 /* set file offset to current plus offset */ +#endif +#ifndef SEEK_END +#define SEEK_END 2 /* set file offset to EOF plus offset */ +#endif + #endif |
