diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-24 02:41:42 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-24 02:41:42 +0000 |
commit | 08e792a36b19ed67d980546e264aa1f5f0108428 (patch) | |
tree | f006f4a111c82b490c235e7e81117991beb7b0c2 /tests/IOStream_Test.cpp | |
parent | 12cf09d5f4bda020d2726f629f841a7116b98852 (diff) | |
download | ATCD-08e792a36b19ed67d980546e264aa1f5f0108428.tar.gz |
renamed ACE_IOStream and ACE_Streambuf classes, and added ACE_LACKS_ACE_IOSTREAM support
Diffstat (limited to 'tests/IOStream_Test.cpp')
-rw-r--r-- | tests/IOStream_Test.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp index be0cfc1c683..32f9a0a3019 100644 --- a/tests/IOStream_Test.cpp +++ b/tests/IOStream_Test.cpp @@ -21,11 +21,12 @@ #include "ace/Acceptor.h" #include "ace/SOCK_Connector.h" #include "ace/SOCK_Acceptor.h" -#include "ace/INET_Addr.h" #include "ace/IOStream.h" #include "test_config.h" -typedef ACE_IOStream<ACE_SOCK_Stream> ACE_SOCK_IOStream; +#if !defined (ACE_LACKS_ACE_IOSTREAM) + +typedef ACE_IOStream_T<ACE_SOCK_Stream> ACE_SOCK_IOStream; /* The biggest drawback to an iostream is that it generally eats up whitespace when performing a get (>>) operation. @@ -374,19 +375,26 @@ spawn (void) #endif /* ACE_HAS_THREADS */ return 0; } +#endif /* !ACE_LACKS_ACE_IOSTREAM */ int main (int, char *[]) { ACE_START_TEST ("IOStream_Test"); +#if !defined (ACE_LACKS_ACE_IOSTREAM) spawn (); - +#else + ACE_ERROR ((LM_ERROR, "ACE_IOSTREAM not supported on this platform\n")); +#endif /* !ACE_LACKS_ACE_IOSTREAM */ ACE_END_TEST; return 0; } + +#if !defined (ACE_LACKS_ACE_IOSTREAM) #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) -template class ACE_IOStream<ACE_SOCK_Stream>; -template class ACE_Streambuf<ACE_SOCK_Stream>; +template class ACE_IOStream_T<ACE_SOCK_Stream>; +template class ACE_Streambuf_T<ACE_SOCK_Stream>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ +#endif /* !ACE_LACKS_ACE_IOSTREAM */ |