mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Switch internal includes to quoted relative
This makes project integration more flexible, allowing the drag-contents-of-directory project integration contemplated in the readme and allowing use via -iquote
This commit is contained in:
parent
a55c96a2ba
commit
64f9c5a61a
@ -204,7 +204,7 @@ a fallback could be:
|
||||
#include <filesystem>
|
||||
namespace fs = std::filesystem;
|
||||
#else
|
||||
#include <ghc/filesystem.hpp>
|
||||
#include "filesystem.hpp"
|
||||
namespace fs = ghc::filesystem;
|
||||
#endif
|
||||
```
|
||||
@ -246,7 +246,7 @@ you might use:
|
||||
using fstream = std::fstream;
|
||||
}
|
||||
#else
|
||||
#include <ghc/filesystem.hpp>
|
||||
#include "filesystem.hpp"
|
||||
namespace fs {
|
||||
using namespace ghc::filesystem;
|
||||
using ifstream = ghc::filesystem::ifstream;
|
||||
@ -325,7 +325,7 @@ switching like this:
|
||||
using fstream = std::fstream;
|
||||
}
|
||||
#else
|
||||
#include <ghc/fs_fwd.hpp>
|
||||
#include "fs_fwd.hpp"
|
||||
namespace fs {
|
||||
using namespace ghc::filesystem;
|
||||
using ifstream = ghc::filesystem::ifstream;
|
||||
@ -364,7 +364,7 @@ to take precedence:
|
||||
#endif
|
||||
|
||||
#ifndef GHC_USE_STD_FS
|
||||
#include <ghc/fs_impl.hpp>
|
||||
#include "fs_impl.hpp"
|
||||
#endif
|
||||
```
|
||||
|
||||
|
@ -34,5 +34,5 @@
|
||||
#ifndef GHC_FILESYSTEM_FWD_H
|
||||
#define GHC_FILESYSTEM_FWD_H
|
||||
#define GHC_FILESYSTEM_FWD
|
||||
#include <ghc/filesystem.hpp>
|
||||
#include "filesystem.hpp"
|
||||
#endif // GHC_FILESYSTEM_FWD_H
|
||||
|
@ -32,4 +32,4 @@
|
||||
// header to work.
|
||||
//---------------------------------------------------------------------------------------
|
||||
#define GHC_FILESYSTEM_IMPLEMENTATION
|
||||
#include <ghc/filesystem.hpp>
|
||||
#include "filesystem.hpp"
|
||||
|
@ -65,7 +65,7 @@
|
||||
using fstream = std::fstream;
|
||||
}
|
||||
#else
|
||||
#include <ghc/filesystem.hpp>
|
||||
#include "filesystem.hpp"
|
||||
namespace fs {
|
||||
using namespace ghc::filesystem;
|
||||
using ifstream = ghc::filesystem::ifstream;
|
||||
|
@ -67,7 +67,7 @@
|
||||
using fstream = std::fstream;
|
||||
}
|
||||
#else
|
||||
#include <ghc/fs_fwd.hpp>
|
||||
#include "fs_fwd.hpp"
|
||||
namespace fs {
|
||||
using namespace ghc::filesystem;
|
||||
using ifstream = ghc::filesystem::ifstream;
|
||||
|
@ -56,5 +56,5 @@
|
||||
#endif
|
||||
|
||||
#ifndef GHC_USE_STD_FS
|
||||
#include <ghc/fs_impl.hpp>
|
||||
#include "fs_impl.hpp"
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user