From b1b95ec2db0d9bdf6fe133b08d222435a2018a5f Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 14 Sep 2025 19:13:52 +0200 Subject: [PATCH] Conditional compilation in wrapper --- src/ifcwrap/IfcParseWrapper.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index cb5b202435..21148f1cd2 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -294,11 +294,15 @@ private: if (!storage) { Py_RETURN_NONE; } +#ifdef IFOPSH_WITH_ROCKSDB std::string value; if (storage->db->Get(storage->ropts, key, &value) != rocksdb::Status::OK()) { Py_RETURN_NONE; } return PyBytes_FromStringAndSize(value.data(), value.size()); +#else + Py_RETURN_NONE; +#endif } %pythoncode %{