Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2007-11-05 06:52:52


Author: chris_kohlhoff
Date: 2007-11-05 06:52:52 EST (Mon, 05 Nov 2007)
New Revision: 40779
URL: http://svn.boost.org/trac/boost/changeset/40779

Log:
Don't set errno when building for Windows targets. Should fix WinCE build.

Text files modified:
   trunk/boost/asio/detail/socket_ops.hpp | 5 +++--
   1 files changed, 3 insertions(+), 2 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-11-05 06:52:52 EST (Mon, 05 Nov 2007)
@@ -49,10 +49,11 @@
 
 inline void clear_error(boost::system::error_code& ec)
 {
- errno = 0;
 #if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
   WSASetLastError(0);
-#endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
+#else
+ errno = 0;
+#endif
   ec = boost::system::error_code();
 }
 


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