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

rmiddleton 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 b9547e78 Guard LOG4CXX_FMT_VA_ARG so users can override if needed 
(#346)
b9547e78 is described below

commit b9547e78f20fd79485992fbf2dbfb1d46aba1032
Author: Robert Middleton <[email protected]>
AuthorDate: Fri Feb 9 20:31:25 2024 -0500

    Guard LOG4CXX_FMT_VA_ARG so users can override if needed (#346)
---
 src/main/include/log4cxx/logger.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/include/log4cxx/logger.h 
b/src/main/include/log4cxx/logger.h
index 735bf4b9..de3e5ef4 100644
--- a/src/main/include/log4cxx/logger.h
+++ b/src/main/include/log4cxx/logger.h
@@ -2085,11 +2085,13 @@ LOG4CXX_LIST_DEF(LoggerList, LoggerPtr);
 #define LOG4CXX_STACKTRACE
 #endif
 
+#ifndef LOG4CXX_FMT_VA_ARG
 #if __cplusplus >= 202002L
        #define LOG4CXX_FMT_VA_ARG(...) __VA_OPT__(,) __VA_ARGS__
 #else
        #define LOG4CXX_FMT_VA_ARG(...) , __VA_ARGS__
 #endif
+#endif
 
 
 /**

Reply via email to