diff options
Diffstat (limited to 'TAO/tao/CDR.inl')
-rw-r--r-- | TAO/tao/CDR.inl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/CDR.inl b/TAO/tao/CDR.inl index 08d0efeae3e..b0accef153f 100644 --- a/TAO/tao/CDR.inl +++ b/TAO/tao/CDR.inl @@ -1,5 +1,6 @@ // -*- C++ -*- #include "tao/SystemException.h" +#include <cstring> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -433,7 +434,7 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, ACE_OutputCDR::from_string x) { if (x.bound_ != 0 && x.val_ != 0 && - ACE_OS::strlen (x.val_) > x.bound_) + std::strlen (x.val_) > x.bound_) { throw CORBA::BAD_PARAM (); } @@ -569,7 +570,7 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Boolean const marshal_flag = is >> const_cast<ACE_CDR::Char *&> (x.val_); if (marshal_flag && x.bound_ != 0 && x.val_ != 0 && - ACE_OS::strlen (x.val_) > x.bound_) + std::strlen (x.val_) > x.bound_) { throw CORBA::BAD_PARAM (); } |