Conditional compilation

This commit is contained in:
Thomas Krijnen
2025-09-14 13:53:20 +02:00
parent 75e1d0e3c7
commit 23b48c43a6
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -1,8 +1,10 @@
#include "IfcFile.h"
#include "IfcLogger.h"
#ifdef IFOPSH_WITH_ROCKSDB
#include <rocksdb/table.h>
#include <rocksdb/convenience.h>
#endif
IfcParse::parse_context::~parse_context() {
for (auto& t : tokens_) {
@@ -462,7 +464,9 @@ IfcParse::impl::rocks_db_file_storage::rocks_db_file_storage(const std::string&
// @todo by_identity is probably not correct here, this mapping is Name -> Identity, so Fn should have access to full pair?
// , byidentity_(&byid_, [this](size_t v) { return assert_existance(v, by_identity); }, [](IfcUtil::IfcBaseClass* v) { return v->identity(); })
{
#ifdef IFOPSH_WITH_ROCKSDB
wopts.disableWAL = true;
#endif
}
IfcParse::impl::rocks_db_file_storage::~rocks_db_file_storage()