From 625b186b4d699fcbdd3befdb349c132d3fa65e74 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Mon, 19 Aug 2024 10:03:38 +0000 Subject: [PATCH] Fix build with -DENABLE_LIBRARIES=0 --- src/DataTypes/DataTypeObject.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/DataTypes/DataTypeObject.cpp b/src/DataTypes/DataTypeObject.cpp index d6395155397..3997e892e9f 100644 --- a/src/DataTypes/DataTypeObject.cpp +++ b/src/DataTypes/DataTypeObject.cpp @@ -18,13 +18,15 @@ #include #include +#include "config.h" + #if USE_SIMDJSON -#include +# include +#elif USE_RAPIDJSON +# include +#else +# include #endif -#if USE_RAPIDJSON -#include -#endif -#include namespace DB { @@ -105,7 +107,7 @@ SerializationPtr DataTypeObject::doGetDefaultSerialization() const switch (schema_format) { case SchemaFormat::JSON: -#ifdef USE_SIMDJSON +#if USE_SIMDJSON return std::make_shared>( std::move(typed_path_serializations), paths_to_skip,