33 lines
654 B
C
33 lines
654 B
C
/*
|
|
* 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_fcntl.h"
|
|
#include "libc/libc_dirent.h"
|
|
|
|
#ifndef RT_USING_LIBC
|
|
#if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
|
|
typedef signed long off_t;
|
|
typedef int mode_t;
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(__MINGW32__) || defined(_WIN32)
|
|
typedef signed long off_t;
|
|
typedef int mode_t;
|
|
#endif
|
|
|
|
#endif
|
|
|