diff options
Diffstat (limited to 'cpp/demo/Ice/callback/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/callback/Client.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/demo/Ice/callback/Client.cpp b/cpp/demo/Ice/callback/Client.cpp index 4b3f81f8bf4..83959a1e5fe 100644 --- a/cpp/demo/Ice/callback/Client.cpp +++ b/cpp/demo/Ice/callback/Client.cpp @@ -19,7 +19,17 @@ public: virtual void callback(const Ice::Current&) { +#ifdef __xlC__ + // + // The xlC compiler synchronizes cin and cout; to see the messages + // while accepting input through cin, we have to print the messages + // with printf + // + printf("received callback\n"); + fflush(0); +#else cout << "received callback" << endl; +#endif } }; |