Skip to content

Commit

Permalink
Add option to keep FS classes in namespace (esp8266#2030)
Browse files Browse the repository at this point in the history
Putting `#define FS_NO_GLOBALS` before `#include <FS.h>` will disable `using` declarations for FS classes.
  • Loading branch information
igrr committed May 16, 2016
1 parent 15aed3b commit 43fb139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cores/esp8266/FS.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class FS

} // namespace fs

#ifndef FS_NO_GLOBALS
using fs::FS;
using fs::File;
using fs::Dir;
Expand All @@ -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

0 comments on commit 43fb139

Please sign in to comment.