aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmytro Ivanov <[email protected]>2024-09-27 14:07:17 +0200
committerDmytro Ivanov <[email protected]>2024-10-02 15:46:07 +0200
commitac5e18320323310f816fe8df0f46ebd7effcecd9 (patch)
tree227d589b96adb2bb66f1d6488f5388d074e820c6 /src
parent5.5.8 (diff)
downloadzen-di/add_cmake_dev.tar.xz
zen-di/add_cmake_dev.zip
add cmake build config to be able to use cliondi/add_cmake_dev
Diffstat (limited to 'src')
-rw-r--r--src/zencore/logging.cpp1
-rw-r--r--src/zenserver/projectstore/httpprojectstore.cpp4
-rw-r--r--src/zenstore/cache/structuredcachestore.cpp2
-rw-r--r--src/zenutil/include/zenutil/logging/fullformatter.h2
-rw-r--r--src/zenutil/include/zenutil/logging/rotatingfilesink.h1
5 files changed, 7 insertions, 3 deletions
diff --git a/src/zencore/logging.cpp b/src/zencore/logging.cpp
index 1a0a91b3d..3ea291102 100644
--- a/src/zencore/logging.cpp
+++ b/src/zencore/logging.cpp
@@ -14,6 +14,7 @@ ZEN_THIRD_PARTY_INCLUDES_START
ZEN_THIRD_PARTY_INCLUDES_END
#if ZEN_PLATFORM_WINDOWS
+#include <windows.h>
# pragma section(".zlog$a", read)
# pragma section(".zlog$f", read)
# pragma section(".zlog$m", read)
diff --git a/src/zenserver/projectstore/httpprojectstore.cpp b/src/zenserver/projectstore/httpprojectstore.cpp
index cffd2569f..a72aa627d 100644
--- a/src/zenserver/projectstore/httpprojectstore.cpp
+++ b/src/zenserver/projectstore/httpprojectstore.cpp
@@ -1482,14 +1482,14 @@ HttpProjectService::HandleOpLogEntriesRequest(HttpRouterRequest& Req)
ProjectStore::Oplog::Paging EntryPaging;
if (std::string_view Param = Params.GetValue("start"); !Param.empty())
{
- if (auto Value = ParseInt<int32>(Param))
+ if (auto Value = ParseInt<int32_t>(Param))
{
EntryPaging.Start = *Value;
}
}
if (std::string_view Param = Params.GetValue("count"); !Param.empty())
{
- if (auto Value = ParseInt<int32>(Param))
+ if (auto Value = ParseInt<int32_t>(Param))
{
EntryPaging.Count = *Value;
}
diff --git a/src/zenstore/cache/structuredcachestore.cpp b/src/zenstore/cache/structuredcachestore.cpp
index ac8b70c1c..cd40cb7fa 100644
--- a/src/zenstore/cache/structuredcachestore.cpp
+++ b/src/zenstore/cache/structuredcachestore.cpp
@@ -85,7 +85,7 @@ ValidateIoBuffer(ZenContentType ContentType, IoBuffer Buffer)
uint64_t RawSize = 0;
if (!CompressedBuffer::ValidateCompressedHeader(MemoryBuffer, /* out */ HeaderRawHash, /* out */ RawSize))
{
- ZEN_SCOPED_ERROR("compressed buffer header validation failed");
+ ZEN_ERROR("compressed buffer header validation failed");
return false;
}
diff --git a/src/zenutil/include/zenutil/logging/fullformatter.h b/src/zenutil/include/zenutil/logging/fullformatter.h
index d4a04d3e5..3f5924e04 100644
--- a/src/zenutil/include/zenutil/logging/fullformatter.h
+++ b/src/zenutil/include/zenutil/logging/fullformatter.h
@@ -8,7 +8,9 @@
ZEN_THIRD_PARTY_INCLUDES_START
#include <spdlog/formatter.h>
+#include <spdlog/details/fmt_helper.h>
#include <spdlog/pattern_formatter.h>
+#include <spdlog/pattern_formatter-inl.h>
ZEN_THIRD_PARTY_INCLUDES_END
namespace zen::logging {
diff --git a/src/zenutil/include/zenutil/logging/rotatingfilesink.h b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
index ca4649ba8..56804cf34 100644
--- a/src/zenutil/include/zenutil/logging/rotatingfilesink.h
+++ b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
@@ -7,6 +7,7 @@
ZEN_THIRD_PARTY_INCLUDES_START
#include <spdlog/details/log_msg.h>
#include <spdlog/sinks/base_sink.h>
+#include <spdlog/pattern_formatter.h>
ZEN_THIRD_PARTY_INCLUDES_END
#include <filesystem>