stdio/va_format: move non-standard structure va_format to nuttx/streams.h

Signed-off-by: likun17 <likun17@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
likun17 2024-05-29 21:26:15 +08:00 committed by Xiang Xiao
parent 8639b1ca66
commit 65264051aa
3 changed files with 7 additions and 6 deletions

View File

@ -296,6 +296,12 @@ struct lib_mtdoutstream_s
}; };
#endif #endif
struct va_format
{
FAR const char *fmt;
FAR va_list *va;
};
/**************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/

View File

@ -111,12 +111,6 @@
typedef struct file_struct FILE; typedef struct file_struct FILE;
struct va_format
{
FAR const char *fmt;
FAR va_list *va;
};
/**************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/

View File

@ -28,6 +28,7 @@
#include <stdio.h> #include <stdio.h>
#include <nuttx/sched.h> #include <nuttx/sched.h>
#include <nuttx/streams.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions