diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | tests/Test_Output.cpp | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 45e8d477d1d..66e9ba6bced 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Mon Nov 29 17:56:39 2004 Steve Huston <shuston@riverace.com> + + * tests/Test_Output.cpp: Re this change: + Fri Nov 19 18:19:19 2004 Steve Huston <shuston@riverace.com> + the reinterpret_cast<> breaks some stuff on LynxOS. So only do + reinterpret_cast on ACE_LACKS_IOSTREAM_TOTALLY, else use + dynamic_cast. This should fix LynXOS. Thanks to + Olli Savia <ops@iki.fi> for bringing this to my attention. + Mon Nov 29 14:10:12 2004 Chad Elliott <elliott_c@ociweb.com> * ace/ace.mpc: diff --git a/tests/Test_Output.cpp b/tests/Test_Output.cpp index 28ee79715e7..65f2da3bca9 100644 --- a/tests/Test_Output.cpp +++ b/tests/Test_Output.cpp @@ -70,8 +70,11 @@ ACE_Test_Output::output_file (void) // the output_file_ is given to ACE_LOG_MSG // and something else might destroy and/or change the stream // so return what ACE_LOG_MSG is using. - return reinterpret_cast<OFSTREAM*>( ACE_LOG_MSG->msg_ostream () ); - //return this->output_file_; +#if defined (ACE_LACKS_IOSTREAM_TOTALLY) + return reinterpret_cast<OFSTREAM*>(ACE_LOG_MSG->msg_ostream ()); +#else + return dynamic_cast<OFSTREAM*>(ACE_LOG_MSG->msg_ostream ()); +#endif /* ACE_LACKS_IOSTREAM_TOTALLY */ } int |