fix(examples): fix invalid include for unistd.h in file_explorer example (#3756)

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech
2022-10-24 13:59:37 +08:00
committed by GitHub
parent 4f8949c57b
commit d1e8c676a4
3 changed files with 8 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
#include "../../lv_examples.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#if LV_USE_TABLE && LV_USE_FILE_EXPLORER && (LV_USE_FS_STDIO || LV_USE_FS_POSIX || LV_USE_FS_WIN32 || LV_USE_FS_FATFS) && LV_BUILD_EXAMPLES
#include <stdlib.h>
#include <string.h>
static void file_explorer_event_handler(lv_event_t * e)
{
lv_event_code_t code = lv_event_get_code(e);

View File

@@ -1,11 +1,11 @@
#include "../../lv_examples.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#if LV_USE_TABLE && LV_USE_FILE_EXPLORER && (LV_USE_FS_STDIO || LV_USE_FS_POSIX || LV_USE_FS_WIN32 || LV_USE_FS_FATFS) && LV_BUILD_EXAMPLES
#include <stdlib.h>
#include <string.h>
static void file_explorer_event_handler(lv_event_t * e)
{
lv_event_code_t code = lv_event_get_code(e);

View File

@@ -1,11 +1,10 @@
#include "../../lv_examples.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#if LV_USE_TABLE && LV_USE_FILE_EXPLORER && (LV_USE_FS_STDIO || LV_USE_FS_POSIX || LV_USE_FS_WIN32 || LV_USE_FS_FATFS) && LV_BUILD_EXAMPLES
#include <stdlib.h>
#include <string.h>
static void exch_table_item(lv_obj_t * tb, int16_t i, int16_t j)
{