diff options
Diffstat (limited to 'ACE/examples/Reactor/Proactor')
-rw-r--r-- | ACE/examples/Reactor/Proactor/test_proactor2.cpp | 12 | ||||
-rw-r--r-- | ACE/examples/Reactor/Proactor/test_proactor3.cpp | 12 |
2 files changed, 22 insertions, 2 deletions
diff --git a/ACE/examples/Reactor/Proactor/test_proactor2.cpp b/ACE/examples/Reactor/Proactor/test_proactor2.cpp index 8e2e57476bf..084cb0eb840 100644 --- a/ACE/examples/Reactor/Proactor/test_proactor2.cpp +++ b/ACE/examples/Reactor/Proactor/test_proactor2.cpp @@ -409,7 +409,7 @@ MyMutex m_Mtx ; long nIOCount ; }; -static char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; +static const char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; Sender::Sender (void) :nIOCount ( 0 ) @@ -805,4 +805,14 @@ int PrintSigMask () return 0; } +#else /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ + +int +ACE_TMAIN (int, ACE_TCHAR *[]) +{ + ACE_DEBUG ((LM_DEBUG, + "This example does not work on this platform.\n")); + return 1; +} + #endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ diff --git a/ACE/examples/Reactor/Proactor/test_proactor3.cpp b/ACE/examples/Reactor/Proactor/test_proactor3.cpp index f0b201c721d..7310fdc6a6f 100644 --- a/ACE/examples/Reactor/Proactor/test_proactor3.cpp +++ b/ACE/examples/Reactor/Proactor/test_proactor3.cpp @@ -454,7 +454,7 @@ private: long io_count_; }; -static char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; +static const char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; Sender::Sender (void) : io_count_ (0) @@ -871,4 +871,14 @@ print_sigmask (void) } #endif /* 0 */ +#else /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ + +int +ACE_TMAIN (int, ACE_TCHAR *[]) +{ + ACE_DEBUG ((LM_DEBUG, + "This example does not work on this platform.\n")); + return 1; +} + #endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ |