This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new c7c97a77 Extend double include guard scope in asyncbuffer.h (#759)
c7c97a77 is described below

commit c7c97a77f412e7b9e6f630211006108dab998813
Author: Stephen Webb <[email protected]>
AuthorDate: Thu Sep 10 17:15:35 2026 +1000

    Extend double include guard scope in asyncbuffer.h (#759)
---
 src/main/include/log4cxx/helpers/asyncbuffer.h | 4 ++--
 src/test/cpp/asyncappenderracestress.cpp       | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/include/log4cxx/helpers/asyncbuffer.h 
b/src/main/include/log4cxx/helpers/asyncbuffer.h
index 023a3df5..49e3d290 100644
--- a/src/main/include/log4cxx/helpers/asyncbuffer.h
+++ b/src/main/include/log4cxx/helpers/asyncbuffer.h
@@ -397,8 +397,6 @@ LOG4CXX_INFO_ASYNC(m_log, surface->GetName()
                        logger->addInfoEvent(std::move(buf << message), 
LOG4CXX_LOCATION);\
                }} while (0)
 
-#endif
-
 #if LOG4CXX_ASYNC_BUFFER_SUPPORTS_FMT
 /**
 Add a new logging event containing a message defined by \c fmt and 
<code>...</code> to attached appender(s) if \c logger is enabled for 
<code>INFO</code> events.
@@ -601,3 +599,5 @@ LOG4CXX_FATAL_FMT_ASYNC(m_log, "{} is not supported", 
m_renderSystem->getName())
 #endif
 
 /**@} Logging macro group */
+
+#endif // LOG4CXX_ASYNC_BUFFER_H
diff --git a/src/test/cpp/asyncappenderracestress.cpp 
b/src/test/cpp/asyncappenderracestress.cpp
index aacf3a91..25e59130 100644
--- a/src/test/cpp/asyncappenderracestress.cpp
+++ b/src/test/cpp/asyncappenderracestress.cpp
@@ -19,7 +19,6 @@
 
 #include <log4cxx/asyncappender.h>
 #include <log4cxx/level.h>
-#include <log4cxx/helpers/asyncbuffer.h>
 #include <log4cxx/spi/loggingevent.h>
 
 #include <atomic>

Reply via email to