Skip to content

Commit

Permalink
Make the presence of __cpp_modules not have an effect on its own (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Mar 15, 2021
1 parent 17d8156 commit 545a722
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions include/llfio/revision.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF a74411eddb6401ab884c5f92cccc24b9a64a9e6f
#define LLFIO_PREVIOUS_COMMIT_DATE "2021-02-23 14:33:57 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE a74411ed
#define LLFIO_PREVIOUS_COMMIT_REF 17d8156ac89e3b8c6aa19a14e0dd723bd65e0902
#define LLFIO_PREVIOUS_COMMIT_DATE "2021-03-09 09:38:56 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 17d8156a
3 changes: 3 additions & 0 deletions include/llfio/v2.0/detail/impl/windows/directory_handle.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ http://www.boost.org/LICENSE_1_0.txt)
*/

#include "../../../directory_handle.hpp"

#include "../../../file_handle.hpp"

#include "import.hpp"

LLFIO_V2_NAMESPACE_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion include/llfio/v2.0/directory_handle.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* A handle to a directory
(C) 2017 Niall Douglas <http://www.nedproductions.biz/> (20 commits)
(C) 2017-2021 Niall Douglas <http://www.nedproductions.biz/> (20 commits)
File Created: Aug 2017
Expand Down
12 changes: 6 additions & 6 deletions include/llfio/v2.0/llfio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@

// If C++ Modules are on and we are not compiling the library,
// we are either generating the interface or importing
#if defined(__cpp_modules)
#if !defined(__cpp_modules) || defined(GENERATING_LLFIO_MODULE_INTERFACE) || LLFIO_DISABLE_CXX_MODULES
// C++ Modules not on, therefore include as usual
#define LLFIO_INCLUDE_ALL
#else
#if defined(GENERATING_LLFIO_MODULE_INTERFACE)
// We are generating this module's interface
#define QUICKCPPLIB_HEADERS_ONLY 0
Expand All @@ -48,9 +51,6 @@
import LLFIO_MODULE_NAME;
#undef LLFIO_INCLUDE_ALL
#endif
#else
// C++ Modules not on, therefore include as usual
#define LLFIO_INCLUDE_ALL
#endif

#ifdef LLFIO_INCLUDE_ALL
Expand All @@ -62,9 +62,9 @@ import LLFIO_MODULE_NAME;
#include "stat.hpp"
#include "utils.hpp"

#include "directory_handle.hpp"
#include "file_handle.hpp"
#include "process_handle.hpp"
#include "directory_handle.hpp"
#include "statfs.hpp"
#ifdef LLFIO_INCLUDE_STORAGE_PROFILE
#include "storage_profile.hpp"
Expand All @@ -83,10 +83,10 @@ import LLFIO_MODULE_NAME;
#include "algorithm/summarize.hpp"

#ifndef LLFIO_EXCLUDE_MAPPED_FILE_HANDLE
#include "mapped.hpp"
#include "algorithm/handle_adapter/xor.hpp"
#include "algorithm/shared_fs_mutex/memory_map.hpp"
#include "algorithm/trivial_vector.hpp"
#include "mapped.hpp"
#endif

#endif

0 comments on commit 545a722

Please sign in to comment.