Skip to content

Commit 43fb139

Browse files
committed
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.
1 parent 15aed3b commit 43fb139

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/esp8266/FS.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class FS
127127

128128
} // namespace fs
129129

130+
#ifndef FS_NO_GLOBALS
130131
using fs::FS;
131132
using fs::File;
132133
using fs::Dir;
@@ -135,7 +136,8 @@ using fs::SeekSet;
135136
using fs::SeekCur;
136137
using fs::SeekEnd;
137138
using fs::FSInfo;
139+
#endif //FS_NO_GLOBALS
138140

139-
extern FS SPIFFS;
141+
extern fs::FS SPIFFS;
140142

141143
#endif //FS_H

0 commit comments

Comments
 (0)