summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/minilibc/stdint.h2
-rw-r--r--components/libc/compilers/minilibc/stdio.h10
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