重新分类为common文件夹下属all文件夹和excgcc文件夹

This commit is contained in:
Meco Man 2021-04-21 00:56:36 +08:00
parent 926cd86589
commit 40c09fc1e0
22 changed files with 24 additions and 0 deletions

View File

@ -12,7 +12,9 @@
#define __DFS_FS_H__ #define __DFS_FS_H__
#include <dfs.h> #include <dfs.h>
#ifdef RT_USING_LIBC
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -0,0 +1,15 @@
# RT-Thread building script for bridge
import os
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
Return('objs')

View File

@ -23,6 +23,13 @@
#include "libc/libc_limits.h" #include "libc/libc_limits.h"
#include "libc/libc_stdio.h" #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) #if defined(__MINGW32__) || defined(_WIN32)
typedef signed long off_t; typedef signed long off_t;
typedef int mode_t; typedef int mode_t;