This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a commit to branch LOGCXX-514
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/LOGCXX-514 by this push:
new d345afe4 remove typedef, see if windows likes that
d345afe4 is described below
commit d345afe46424ebea57626f2b249ddf84e4de2b6f
Author: Robert Middleton <[email protected]>
AuthorDate: Fri Nov 25 09:15:46 2022 -0500
remove typedef, see if windows likes that
---
src/main/cpp/loggingevent.cpp | 2 +-
src/main/include/log4cxx/log4cxx.h.in | 3 ---
src/main/include/log4cxx/spi/loggingevent.h | 2 +-
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/main/cpp/loggingevent.cpp b/src/main/cpp/loggingevent.cpp
index 4e20dad5..2dfe0974 100644
--- a/src/main/cpp/loggingevent.cpp
+++ b/src/main/cpp/loggingevent.cpp
@@ -436,7 +436,7 @@ const log4cxx::spi::LocationInfo&
LoggingEvent::getLocationInformation() const
return m_priv->locationInfo;
}
-log4cxx_timepoint_t LoggingEvent::getChronoTimeStamp() const{
+std::chrono::time_point<std::chrono::high_resolution_clock>
LoggingEvent::getChronoTimeStamp() const{
return m_priv->chronoTimeStamp;
}
diff --git a/src/main/include/log4cxx/log4cxx.h.in
b/src/main/include/log4cxx/log4cxx.h.in
index db930599..88470937 100644
--- a/src/main/include/log4cxx/log4cxx.h.in
+++ b/src/main/include/log4cxx/log4cxx.h.in
@@ -60,9 +60,6 @@ typedef unsigned int log4cxx_uint32_t;
#include "boost-std-configuration.h"
#include <memory>
-#include <chrono>
-
-typedef std::chrono::time_point<std::chrono::high_resolution_clock>
log4cxx_timepoint_t;
#define LOG4CXX_PTR_DEF(T) typedef std::shared_ptr<T> T##Ptr;\
typedef std::weak_ptr<T> T##WeakPtr
diff --git a/src/main/include/log4cxx/spi/loggingevent.h
b/src/main/include/log4cxx/spi/loggingevent.h
index 2b1ffaae..ac8887bc 100644
--- a/src/main/include/log4cxx/spi/loggingevent.h
+++ b/src/main/include/log4cxx/spi/loggingevent.h
@@ -108,7 +108,7 @@ class LOG4CXX_EXPORT LoggingEvent :
was created. */
log4cxx_time_t getTimeStamp() const;
- log4cxx_timepoint_t getChronoTimeStamp() const;
+ std::chrono::time_point<std::chrono::high_resolution_clock>
getChronoTimeStamp() const;
/* Return the file where this log statement was written. */
const log4cxx::spi::LocationInfo& getLocationInformation()
const;