rtlibc.h 624 字节
Newer Older
B
bernard 已提交
1
/*
mysterywolf's avatar
mysterywolf 已提交
2
 * Copyright (c) 2006-2021, 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
 *
 * 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_fcntl.h"

18
#ifndef RT_USING_LIBC
19
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
20 21 22 23 24
typedef signed long off_t;
typedef int mode_t;
#endif
#endif

B
bernard 已提交
25
#if defined(__MINGW32__) || defined(_WIN32)
Y
yygg_you 已提交
26 27 28 29
typedef signed long off_t;
typedef int mode_t;
#endif

B
bernard 已提交
30 31
#endif