rt-thread-official/include/rtlibc.h

40 lines
848 B
C
Raw Normal View History

/*
2021-03-08 17:22:21 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* 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"
#include "libc/libc_fdset.h"
2020-09-05 16:14:21 +08:00
#include "libc/libc_limits.h"
2020-09-05 16:21:00 +08:00
#include "libc/libc_stdio.h"
#ifndef RT_USING_LIBC
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
typedef signed long off_t;
typedef int mode_t;
#endif
#endif
#if defined(__MINGW32__) || defined(_WIN32)
2017-10-20 13:26:47 +08:00
typedef signed long off_t;
typedef int mode_t;
#endif
#endif