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 2026/09/10 06:48:19 UTC

(logging-log4cxx) branch async_buffer_structure created (now 1f335209)

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

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


      at 1f335209 Fix double include guard scope in asyncbuffer.h

This branch includes the following new commits:

     new 1f335209 Fix double include guard scope in asyncbuffer.h

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(logging-log4cxx) 01/01: Fix double include guard scope in asyncbuffer.h

Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1f33520993c3a285fb48cb96ee0833fef1af972b
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Thu Sep 10 16:47:52 2026 +1000

    Fix double include guard scope in asyncbuffer.h
---
 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>