diff options
author | Steve Huston <shuston@riverace.com> | 2003-03-06 23:15:17 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2003-03-06 23:15:17 +0000 |
commit | 210f587c3f413a0fd24480b82b1649ce2ddef5c9 (patch) | |
tree | 6d90871f3df34fe6b0b7ecc778de1c0db6474dc2 /examples | |
parent | e033aa14a4cff3c39fcf71f7681e26f363686e1e (diff) | |
download | ATCD-210f587c3f413a0fd24480b82b1649ce2ddef5c9.tar.gz |
ChangeLogTag:Thu Mar 6 18:14:21 2003 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp index 813e88d1314..419aaf6c0b1 100644 --- a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp +++ b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp @@ -145,8 +145,15 @@ int Process_Per_Connection_Logging_Server::run_worker (int, char *argv[]) { int client_handle_i = atoi (argv[2]); + // Some compilers don't like reinterpret_casting an int to an int, so + // only do reinterpret_cast on Windows. +#if defined (ACE_WIN32) ACE_HANDLE client_handle = ACE_reinterpret_cast (ACE_HANDLE, client_handle_i); +#else + ACE_HANDLE client_handle = + ACE_static_cast (ACE_HANDLE, client_handle_i); +#endif /* ACE_WIN32 */ ACE_SOCK_Stream client (client_handle); handle_data (&client); |