summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/callback/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-01-16 03:12:56 +0000
committerMatthew Newhook <matthew@zeroc.com>2007-01-16 03:12:56 +0000
commit1dd0691a5e519403cd7410846fa95c65b63743c3 (patch)
tree8e26268257683d66b8752874fb8f20c105f93820 /cpp/demo/Ice/callback/Client.cpp
parent*** empty log message *** (diff)
downloadice-1dd0691a5e519403cd7410846fa95c65b63743c3.tar.bz2
ice-1dd0691a5e519403cd7410846fa95c65b63743c3.tar.xz
ice-1dd0691a5e519403cd7410846fa95c65b63743c3.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1635
Diffstat (limited to 'cpp/demo/Ice/callback/Client.cpp')
-rw-r--r--cpp/demo/Ice/callback/Client.cpp10
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
}
};