diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2019-02-13 16:42:32 -0600 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2019-02-13 16:42:32 -0600 |
commit | ed5565b97dfffe6178e27a1eaec1064b35721c01 (patch) | |
tree | 56a590c93eafc93bd7b2eae88665654da467e155 /ACE/ace/Log_Msg.cpp | |
parent | 6ee5298e8932a29aa3bd312d73c3f03c99e2d4ed (diff) | |
download | ATCD-ed5565b97dfffe6178e27a1eaec1064b35721c01.tar.gz |
Log_Msg: Allow flag macros to be overriden
Diffstat (limited to 'ACE/ace/Log_Msg.cpp')
-rw-r--r-- | ACE/ace/Log_Msg.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ACE/ace/Log_Msg.cpp b/ACE/ace/Log_Msg.cpp index fbaafeed891..190c6d7815d 100644 --- a/ACE/ace/Log_Msg.cpp +++ b/ACE/ace/Log_Msg.cpp @@ -138,13 +138,15 @@ private: ACE_Log_Msg_Backend *ACE_Log_Msg_Manager::log_backend_ = 0; ACE_Log_Msg_Backend *ACE_Log_Msg_Manager::custom_backend_ = 0; -#ifdef ACE_ANDROID -# define DEFAULT_LOG_BACKEND_FLAGS ACE_Log_Msg::SYSLOG -#else -# define DEFAULT_LOG_BACKEND_FLAGS 0 +#ifndef ACE_DEFAULT_LOG_BACKEND_FLAGS +# ifdef ACE_ANDROID +# define ACE_DEFAULT_LOG_BACKEND_FLAGS ACE_Log_Msg::SYSLOG +# else +# define ACE_DEFAULT_LOG_BACKEND_FLAGS 0 +# endif #endif -u_long ACE_Log_Msg_Manager::log_backend_flags_ = DEFAULT_LOG_BACKEND_FLAGS; +u_long ACE_Log_Msg_Manager::log_backend_flags_ = ACE_DEFAULT_LOG_BACKEND_FLAGS; int ACE_Log_Msg_Manager::init_backend (const u_long *flags) { |