Fix compilation for use as IDF component (#5265)

This commit is contained in:
Me No Dev
2021-06-09 12:56:12 +03:00
committed by GitHub
parent 90fc68d83f
commit 7f87d0fc3a
16 changed files with 29 additions and 21 deletions

View File

@ -20,11 +20,15 @@ extern "C" {
#include <sys/unistd.h>
#include <sys/stat.h>
#include <dirent.h>
#include "esp_littlefs.h"
}
#include "sdkconfig.h"
#include "LITTLEFS.h"
#ifdef CONFIG_LITTLEFS_PAGE_SIZE
extern "C" {
#include "esp_littlefs.h"
}
using namespace fs;
class LITTLEFSImpl : public VFSImpl
@ -137,4 +141,4 @@ size_t LITTLEFSFS::usedBytes()
}
LITTLEFSFS LITTLEFS;
#endif