Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2007-12-05 16:46:20


Author: chris_kohlhoff
Date: 2007-12-05 16:46:19 EST (Wed, 05 Dec 2007)
New Revision: 41762
URL: http://svn.boost.org/trac/boost/changeset/41762

Log:
Don't use deprecated function workaround when compiling for Windows CE.

Text files modified:
   trunk/boost/asio/detail/socket_ops.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/asio/detail/socket_ops.hpp
==============================================================================
--- trunk/boost/asio/detail/socket_ops.hpp (original)
+++ trunk/boost/asio/detail/socket_ops.hpp 2007-12-05 16:46:19 EST (Wed, 05 Dec 2007)
@@ -1125,7 +1125,7 @@
 inline void gai_strcpy(char* target, const char* source, std::size_t max_size)
 {
   using namespace std;
-#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(UNDER_CE)
   strcpy_s(target, max_size, source);
 #else
   *target = 0;
@@ -1663,7 +1663,7 @@
       {
         return ec = boost::asio::error::no_buffer_space;
       }
-#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(UNDER_CE)
       sprintf_s(serv, servlen, "%u", ntohs(port));
 #else
       sprintf(serv, "%u", ntohs(port));
@@ -1686,7 +1686,7 @@
         {
           return ec = boost::asio::error::no_buffer_space;
         }
-#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(UNDER_CE)
         sprintf_s(serv, servlen, "%u", ntohs(port));
 #else
         sprintf(serv, "%u", ntohs(port));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk