1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Add option to keep FS classes in namespace (#2030)

Putting `#define FS_NO_GLOBALS` before `#include <FS.h>` will disable `using` declarations for FS classes.
This commit is contained in:
Ivan Grokhotkov 2016-05-16 11:08:33 +08:00
parent 15aed3b06e
commit 43fb139ed8

View File

@ -127,6 +127,7 @@ protected:
} // namespace fs
#ifndef FS_NO_GLOBALS
using fs::FS;
using fs::File;
using fs::Dir;
@ -135,7 +136,8 @@ using fs::SeekSet;
using fs::SeekCur;
using fs::SeekEnd;
using fs::FSInfo;
#endif //FS_NO_GLOBALS
extern FS SPIFFS;
extern fs::FS SPIFFS;
#endif //FS_H