diff options
Diffstat (limited to 'tests/IOStream_Test.cpp')
-rw-r--r-- | tests/IOStream_Test.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp index cd3c42a46a0..0c2b5f0101a 100644 --- a/tests/IOStream_Test.cpp +++ b/tests/IOStream_Test.cpp @@ -189,7 +189,7 @@ client (void *arg = 0) // Send a string to the server which it can interpret as a qchar[] const char *str = "\"This is a test string.\""; ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" (%P|%t) Client Sending: (%s)\n"), - ACE_TEXT_CHAR_TO_TCHAR (str))); + ACE_TEXT_TO_TCHAR_IN (str))); server << str << endl; // Allow the server to get the string and echo it to the user. (The @@ -324,7 +324,7 @@ server (void *arg = 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" (%P|%t) Server Received: (\"%s\")\n"), - ACE_TEXT_CHAR_TO_TCHAR ((char *) qbuf))); + ACE_TEXT_TO_TCHAR_IN ((char *) qbuf))); // Give the client time to announce the next test to the user. ACE_OS::sleep (2); @@ -365,7 +365,7 @@ server (void *arg = 0) break; ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%s "), - ACE_TEXT_CHAR_TO_TCHAR (buf))); + ACE_TEXT_TO_TCHAR_IN (buf))); } ACE_DEBUG ((LM_DEBUG, @@ -500,3 +500,14 @@ run_main (int, ACE_TCHAR *[]) return 0; } + +#if !defined (ACE_LACKS_ACE_IOSTREAM) +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) +template class ACE_IOStream<ACE_SOCK_Stream>; +template class ACE_Streambuf_T<ACE_SOCK_Stream>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +#pragma instantiate ACE_IOStream<ACE_SOCK_Stream> +#pragma instantiate ACE_Streambuf_T<ACE_SOCK_Stream> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + +#endif /* !ACE_LACKS_ACE_IOSTREAM */ |