summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/callback/CallbackI.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/Glacier2/callback/CallbackI.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/Glacier2/callback/CallbackI.cpp')
-rw-r--r--cpp/demo/Glacier2/callback/CallbackI.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/callback/CallbackI.cpp b/cpp/demo/Glacier2/callback/CallbackI.cpp
index 345ee3f66b8..fb9ff794970 100644
--- a/cpp/demo/Glacier2/callback/CallbackI.cpp
+++ b/cpp/demo/Glacier2/callback/CallbackI.cpp
@@ -16,7 +16,19 @@ using namespace Demo;
void
CallbackReceiverI::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
}
void