mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
Patch porting gcc v2 (#124)
* 更改编译器的Include路径,使得include时不需要加`<libc/src/include/>`前缀 * 修改include路径 Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
#include "cmd.h"
|
||||
#include "cmd_help.h"
|
||||
#include "cmd_test.h"
|
||||
#include <libc/src/dirent.h>
|
||||
#include <libc/src/errno.h>
|
||||
#include <libc/src/fcntl.h>
|
||||
#include <libc/src/include/signal.h>
|
||||
#include <libc/src/stddef.h>
|
||||
#include <libc/src/stdio.h>
|
||||
#include <libc/src/stdlib.h>
|
||||
#include <libc/src/string.h>
|
||||
#include <libc/src/sys/stat.h>
|
||||
#include <libc/src/sys/wait.h>
|
||||
#include <libc/src/unistd.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <libsystem/syscall.h>
|
||||
|
||||
// 当前工作目录(在main_loop中初始化)
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "cmd_help.h"
|
||||
#include <libc/src/stdio.h>
|
||||
#include <libc/src/stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
struct help_table_item_t
|
||||
{
|
||||
void (*func)();
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "cmd_test.h"
|
||||
#include <libc/src/stdio.h>
|
||||
#include <libc/src/stdlib.h>
|
||||
#include <libc/src/string.h>
|
||||
#include <libc/src/unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int shell_pipe_test(int argc, char **argv)
|
||||
{
|
||||
|
@ -1,13 +1,13 @@
|
||||
#include "cmd.h"
|
||||
#include <libKeyboard/keyboard.h>
|
||||
#include <libc/src/fcntl.h>
|
||||
#include <libc/src/printf.h>
|
||||
#include <libc/src/stddef.h>
|
||||
#include <libc/src/stdio.h>
|
||||
#include <libc/src/stdlib.h>
|
||||
#include <libc/src/string.h>
|
||||
#include <libc/src/sys/stat.h>
|
||||
#include <libc/src/unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <printf.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define pause_cpu() asm volatile("pause\n\t");
|
||||
#define MEM_HISTORY 1024
|
||||
|
Reference in New Issue
Block a user