[BSP] fix compiling issue

This commit is contained in:
Bernard Xiong
2017-10-16 19:16:10 +08:00
parent f47898bb17
commit 591339e7a8
15 changed files with 27 additions and 28 deletions

View File

@@ -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.

View File

@@ -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