rtlibc.h 819 字节
Newer Older
B
bernard 已提交
1
/*
2
 * Copyright (c) 2006-2018, RT-Thread Development Team
B
bernard 已提交
3
 *
4
 * SPDX-License-Identifier: Apache-2.0
B
bernard 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 *
 * Change Logs:
 * Date           Author       Notes
 * 2017-01-21     Bernard      the first version
 */

#ifndef RTLIBC_H__
#define RTLIBC_H__

/* definitions for libc if toolchain has no these definitions */
#include "libc/libc_stat.h"
#include "libc/libc_errno.h"

#include "libc/libc_fcntl.h"
#include "libc/libc_ioctl.h"
#include "libc/libc_dirent.h"
#include "libc/libc_signal.h"
B
bernard 已提交
22
#include "libc/libc_fdset.h"
mysterywolf's avatar
mysterywolf 已提交
23
#include "libc/libc_limits.h"
mysterywolf's avatar
mysterywolf 已提交
24
#include "libc/libc_stdio.h"
B
bernard 已提交
25

B
Bernard Xiong 已提交
26
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
B
bernard 已提交
27
typedef signed long off_t;
28
typedef int mode_t;
B
bernard 已提交
29 30
#endif

B
bernard 已提交
31
#if defined(__MINGW32__) || defined(_WIN32)
Y
yygg_you 已提交
32 33 34 35
typedef signed long off_t;
typedef int mode_t;
#endif

B
bernard 已提交
36 37
#endif