summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-18 14:46:57 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-18 14:46:57 +0000
commit2de495754c224f6c5fef4c202be81cf9f24bda6d (patch)
tree8a153f75d24851c14cf2a57de7e9ae113df950a8 /cppe/demo/IceE/chat/Client.cpp
parentFixed Pure client lib build and chat demo build (diff)
downloadice-2de495754c224f6c5fef4c202be81cf9f24bda6d.tar.bz2
ice-2de495754c224f6c5fef4c202be81cf9f24bda6d.tar.xz
ice-2de495754c224f6c5fef4c202be81cf9f24bda6d.zip
Fixed ICEE_HAS_ROUTER build
Diffstat (limited to 'cppe/demo/IceE/chat/Client.cpp')
-rwxr-xr-xcppe/demo/IceE/chat/Client.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/cppe/demo/IceE/chat/Client.cpp b/cppe/demo/IceE/chat/Client.cpp
index d6be7d58b39..3a92b42a0d2 100755
--- a/cppe/demo/IceE/chat/Client.cpp
+++ b/cppe/demo/IceE/chat/Client.cpp
@@ -12,6 +12,8 @@
#include <Router.h>
#include <Chat.h>
+#ifdef ICEE_HAS_ROUTER
+
using namespace std;
using namespace Ice;
using namespace Demo;
@@ -188,3 +190,14 @@ main(int argc, char* argv[])
return status;
}
+
+#else
+
+int
+main(int argc, char* argv[])
+{
+ fprintf(stderr, "This demo requires Ice-E be built with router support enabled.\n");
+ return -1;
+}
+
+#endif