You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2024/02/09 02:02:29 UTC

(logging-log4cxx) 01/01: Guard LOG4CXX_FMT_VA_ARG so users can override if needed

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

rmiddleton pushed a commit to branch fmt-macros-guard
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git

commit dd93f3ecfcbd26bf0202ec6337aaf63ad7bd9da3
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Thu Feb 8 21:02:17 2024 -0500

    Guard LOG4CXX_FMT_VA_ARG so users can override if needed
---
 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
 
 
 /**