diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /ace/Log_Msg.h | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-typecode-overhaul.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'ace/Log_Msg.h')
-rw-r--r-- | ace/Log_Msg.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h index 14be11341e9..258612c27fc 100644 --- a/ace/Log_Msg.h +++ b/ace/Log_Msg.h @@ -36,7 +36,7 @@ ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \ ace___->set (__FILE__, __LINE__, -1, __ace_error, ace___->restart (), \ ace___->msg_ostream (), ace___->msg_callback ()); \ - ace___->log (LM_ERROR, ACE_LIB_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), ACE_TEXT_CHAR_TO_TCHAR (#X), -1); \ + ace___->log (LM_ERROR, ACE_LIB_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), #X, -1); \ } } while (0) #endif /* ACE_NDEBUG */ @@ -100,17 +100,15 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -// These workarounds are necessary for nasty libraries or platforms -// that #define STDERR or THREAD (e.g. LynxOS). We simply #undef -// these macros as there is no way to save the macro definition using -// the pre-processor. See Bugzilla Bug #299 for more info. - -#if defined (STDERR) +#if defined (__Lynx__) || defined (INTEGRITY) # undef STDERR -#endif /* STDERR */ +#endif /* __Lynx__ */ #if defined (THREAD) -# undef THREAD +// This workaround is necessary for nasty libraries that #define +// THREAD 1. +#define ACE_THREAD_HACK THREAD +#undef THREAD #endif /* THREAD */ class ACE_Log_Msg_Callback; @@ -711,6 +709,11 @@ ACE_TSS_cleanup (void *ptr); # endif /* ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION */ #endif /* ACE_MT_SAFE */ +#if defined (ACE_THREAD_HACK) +#define THREAD ACE_THREAD_HACK +#undef ACE_THREAD_HACK +#endif /* ACE_THREAD_HACK */ + #if defined(ACE_LEGACY_MODE) #include "ace/Log_Msg_Callback.h" #endif /* ACE_LEGACY_MODE */ |