You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2022/12/30 03:57:45 UTC
[logging-log4cxx] 01/02: Prevent compilation errors where std::chrono is used
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch next_stable
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit 6600ae18a3bc6ca8c18905417a904ab4626eb904
Author: Stephen Webb <st...@sabreautonomous.com.au>
AuthorDate: Fri Dec 30 14:51:17 2022 +1100
Prevent compilation errors where std::chrono is used
---
src/main/cpp/date.cpp | 1 +
src/main/cpp/filewatchdog.cpp | 1 +
src/main/cpp/socketappenderskeleton.cpp | 1 +
3 files changed, 3 insertions(+)
diff --git a/src/main/cpp/date.cpp b/src/main/cpp/date.cpp
index fcaa8566..3dec53c8 100644
--- a/src/main/cpp/date.cpp
+++ b/src/main/cpp/date.cpp
@@ -16,6 +16,7 @@
*/
#include <log4cxx/logstring.h>
#include <log4cxx/helpers/date.h>
+#include <chrono>
#define LOG4CXX_USEC_PER_SEC 1000000LL
#ifndef INT64_C
diff --git a/src/main/cpp/filewatchdog.cpp b/src/main/cpp/filewatchdog.cpp
index edd9443e..8bc7553e 100644
--- a/src/main/cpp/filewatchdog.cpp
+++ b/src/main/cpp/filewatchdog.cpp
@@ -25,6 +25,7 @@
#include <log4cxx/helpers/threadutility.h>
#include <log4cxx/helpers/stringhelper.h>
#include <functional>
+#include <chrono>
using namespace log4cxx;
using namespace log4cxx::helpers;
diff --git a/src/main/cpp/socketappenderskeleton.cpp b/src/main/cpp/socketappenderskeleton.cpp
index 3542939a..9f0117fa 100644
--- a/src/main/cpp/socketappenderskeleton.cpp
+++ b/src/main/cpp/socketappenderskeleton.cpp
@@ -27,6 +27,7 @@
#include <log4cxx/private/appenderskeleton_priv.h>
#include <log4cxx/private/socketappenderskeleton_priv.h>
#include <functional>
+#include <chrono>
using namespace log4cxx;
using namespace log4cxx::helpers;