diff options
Diffstat (limited to 'include/llfio/v2.0/llfio.hpp')
-rw-r--r-- | include/llfio/v2.0/llfio.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llfio/v2.0/llfio.hpp b/include/llfio/v2.0/llfio.hpp index dc7ed70a..a7c23b27 100644 --- a/include/llfio/v2.0/llfio.hpp +++ b/include/llfio/v2.0/llfio.hpp @@ -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 @@ -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 @@ -86,10 +86,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 |