Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
5d430a39e9
2 changed files with 6 additions and 2 deletions
  1. 2 2
      panda/src/vrpn/vrpnClient.I
  2. 4 0
      panda/src/vrpn/vrpn_interface.h

+ 2 - 2
panda/src/vrpn/vrpnClient.I

@@ -25,7 +25,7 @@ get_server_name() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool VrpnClient::
 INLINE bool VrpnClient::
 is_valid() const {
 is_valid() const {
-  return _connection->doing_okay();
+  return (_connection->doing_okay() != 0);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -36,7 +36,7 @@ is_valid() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool VrpnClient::
 INLINE bool VrpnClient::
 is_connected() const {
 is_connected() const {
-  return _connection->connected();
+  return (_connection->connected() != 0);
 }
 }
 
 
 
 

+ 4 - 0
panda/src/vrpn/vrpn_interface.h

@@ -25,4 +25,8 @@
 #include <vrpn_Button.h>
 #include <vrpn_Button.h>
 #include <vrpn_Dial.h>
 #include <vrpn_Dial.h>
 
 
+#ifdef sleep
+#undef sleep
+#endif
+
 #endif
 #endif