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:
Chris Sauer 2023-07-26 21:40:38 -07:00
parent a55c96a2ba
commit 64f9c5a61a
6 changed files with 9 additions and 9 deletions

View File

@ -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
```

View File

@ -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

View File

@ -32,4 +32,4 @@
// header to work.
//---------------------------------------------------------------------------------------
#define GHC_FILESYSTEM_IMPLEMENTATION
#include <ghc/filesystem.hpp>
#include "filesystem.hpp"

View File

@ -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;

View File

@ -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;

View File

@ -56,5 +56,5 @@
#endif
#ifndef GHC_USE_STD_FS
#include <ghc/fs_impl.hpp>
#include "fs_impl.hpp"
#endif