Skip to content

Commit

Permalink
stdio.h:Remove unnecessary header file, app header change
Browse files Browse the repository at this point in the history
stdio.h remove <nuttx/xxxx.h>  Some .c previously depended on
<nuttx/xxx.h> and needed to be added to .c instead of stdio.h

Signed-off-by: anjiahao <[email protected]>
  • Loading branch information
anjiahao1 committed Nov 12, 2024
1 parent 39908cc commit 593e46c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nshlib/nsh_fsutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include <assert.h>
#include <unistd.h>

#include <nuttx/lib/lib.h>

#include "nsh.h"
#include "nsh_console.h"

Expand Down
1 change: 1 addition & 0 deletions testing/ostest/nxevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <nuttx/event.h>

#include <stdio.h>
#include <sched.h>
#include <pthread.h>

#include "ostest.h"
Expand Down
1 change: 1 addition & 0 deletions testing/ostest/pthread_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <sys/wait.h>
#include <stdio.h>
#include <sched.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions testing/ostest/setjmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <assert.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdbool.h>

/****************************************************************************
* Public Functions
Expand Down
1 change: 1 addition & 0 deletions testing/ostest/setvbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <assert.h>
#include <stdio.h>
#include <stdbool.h>

#ifndef CONFIG_STDIO_DISABLE_BUFFERING

Expand Down
1 change: 1 addition & 0 deletions testing/ostest/signest.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <debug.h>
Expand Down

0 comments on commit 593e46c

Please sign in to comment.