diff options
author | Steve Huston <shuston@riverace.com> | 2007-01-06 00:13:33 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2007-01-06 00:13:33 +0000 |
commit | a3b7dea69399648c2a7a0153044a4a0ab10109f4 (patch) | |
tree | 0d4aa36885e171bacce4f30edfea290e5fbd8140 /ACE/tests/SPIPE_Test.cpp | |
parent | 2bb628ef1397bc2ff4c26817bb71c338214c35ed (diff) | |
download | ATCD-a3b7dea69399648c2a7a0153044a4a0ab10109f4.tar.gz |
ChangeLogTag:Sat Jan 6 00:06:52 UTC 2007 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/tests/SPIPE_Test.cpp')
-rw-r--r-- | ACE/tests/SPIPE_Test.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ACE/tests/SPIPE_Test.cpp b/ACE/tests/SPIPE_Test.cpp index 22a4427af44..31e0ae86653 100644 --- a/ACE/tests/SPIPE_Test.cpp +++ b/ACE/tests/SPIPE_Test.cpp @@ -32,9 +32,7 @@ ACE_RCSID(tests, SPIPE_Test, "SPIPE_Test.cpp,v 4.36 2002/03/06 21:48:03 nanbor Exp") -#if defined (ACE_HAS_STREAM_PIPES) \ - || (defined (ACE_WIN32) && defined(ACE_HAS_WINNT4) \ - && (ACE_HAS_WINNT4 !=0)) +#if defined (ACE_HAS_STREAM_PIPES) || defined (ACE_HAS_WIN32_NAMED_PIPES) # define TEST_HAS_STREAM_PIPES #endif @@ -64,7 +62,7 @@ client (void *) if (cli_stream.close () == -1) ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("close"))); -#if (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) +#if defined (ACE_HAS_WIN32_NAMED_PIPES) // Wait for server to get ready... ACE_OS::sleep (1); @@ -134,7 +132,7 @@ server (void *) new_stream.close (); acceptor.close (); -#if (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) +#if defined (ACE_HAS_WIN32_NAMED_PIPES) // Initialize an NT bytestream named pipe listener. if (acceptor.open (ACE_SPIPE_Addr (rendezvous), 1, @@ -177,7 +175,7 @@ server (void *) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("End of connection. Closing handle\n"))); new_stream.close (); acceptor.close (); -#endif /* (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) */ +#endif /* defined (ACE_HAS_WIN32NAMED_PIPES) */ return 0; } |