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 2022/01/18 00:54:06 UTC

[logging-log4cxx] branch next_stable updated: Prevent compilation error when -DBUILD_SHARED_LIBS=off (#104)

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

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


The following commit(s) were added to refs/heads/next_stable by this push:
     new 09b5b72  Prevent compilation error when -DBUILD_SHARED_LIBS=off (#104)
09b5b72 is described below

commit 09b5b723a1a210c28bf8b05b0676bb2b104359ba
Author: Stephen Webb <st...@ieee.org>
AuthorDate: Tue Jan 18 11:54:01 2022 +1100

    Prevent compilation error when -DBUILD_SHARED_LIBS=off (#104)
---
 src/main/cpp/threadutility.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/cpp/threadutility.cpp b/src/main/cpp/threadutility.cpp
index 3740b0a..fcc3c6b 100644
--- a/src/main/cpp/threadutility.cpp
+++ b/src/main/cpp/threadutility.cpp
@@ -16,6 +16,9 @@
  */
 
 #include "log4cxx/helpers/threadutility.h"
+#if !defined(LOG4CXX)
+	#define LOG4CXX 1
+#endif
 #include "log4cxx/private/log4cxx_private.h"
 #include "log4cxx/helpers/loglog.h"