From 809d50d910ad98dba91046cd94aa3a770fdc88df Mon Sep 17 00:00:00 2001 From: schmidt Date: Wed, 27 Aug 1997 22:01:31 +0000 Subject: *** empty log message *** --- examples/IOStream/server/iostream_server.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'examples/IOStream') diff --git a/examples/IOStream/server/iostream_server.cpp b/examples/IOStream/server/iostream_server.cpp index 1c0a61d9637..494ddf53acf 100644 --- a/examples/IOStream/server/iostream_server.cpp +++ b/examples/IOStream/server/iostream_server.cpp @@ -13,12 +13,19 @@ // like an iostream. The new type (ACE_SOCK_IOStream) can be used // anywhere an ACE_SOCK_Stream is used. -typedef ACE_IOStream ACE_SOCK_IOStream ; +typedef ACE_IOStream ACE_SOCK_IOStream; + +// Need to handle brain-dead C++ compilers. +#if defined (ACE_HAS_TYPENAME_KEYWORD) +#define ACE_SOCK_IOSTREAM ACE_SOCK_IOStream +#else +#define ACE_SOCK_IOSTREAM ACE_SOCK_IOStream, ACE_INET_Addr +#endif /* ACE_HAS_TYPENAME_KEYWORD */ // Create a service handler object based on our new // iostream/SOCK_Stream hybrid. -typedef ACE_Svc_Handler +typedef ACE_Svc_Handler Service_Handler; class Handler : public Service_Handler @@ -37,7 +44,7 @@ public: (this, ACE_Event_Handler::READ_MASK) == - 1) ACE_ERROR_RETURN ((LM_ERROR, "registering connection handler with ACE_Reactor\n"), - - 1); + -1); return 0; } -- cgit v1.2.1