Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80434 - in trunk: boost/context libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-09-07 14:35:03


Author: olli
Date: 2012-09-07 14:35:02 EDT (Fri, 07 Sep 2012)
New Revision: 80434
URL: http://svn.boost.org/trac/boost/changeset/80434

Log:
context: remove check _POSIX_C_SOURCE >= 200112L
- check for POSIX.1-2001 is not reliable for all compilers/plaforms

Text files modified:
   trunk/boost/context/guarded_stack_allocator.hpp | 4 ++--
   trunk/boost/context/utils.hpp | 4 ++--
   trunk/libs/context/src/guarded_stack_allocator_posix.cpp | 4 ++--
   trunk/libs/context/src/utils_posix.cpp | 4 ++--
   4 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/boost/context/guarded_stack_allocator.hpp
==============================================================================
--- trunk/boost/context/guarded_stack_allocator.hpp (original)
+++ trunk/boost/context/guarded_stack_allocator.hpp 2012-09-07 14:35:02 EDT (Fri, 07 Sep 2012)
@@ -15,7 +15,7 @@
 }
 #endif
 
-#if defined (BOOST_WINDOWS) || _POSIX_C_SOURCE >= 200112L
+//#if defined (BOOST_WINDOWS) || _POSIX_C_SOURCE >= 200112L
 
 #include <cstddef>
 
@@ -50,6 +50,6 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
-#endif
+//#endif
 
 #endif // BOOST_CTX_GUARDED_STACK_ALLOCATOR_H

Modified: trunk/boost/context/utils.hpp
==============================================================================
--- trunk/boost/context/utils.hpp (original)
+++ trunk/boost/context/utils.hpp 2012-09-07 14:35:02 EDT (Fri, 07 Sep 2012)
@@ -15,7 +15,7 @@
 }
 #endif
 
-#if defined (BOOST_WINDOWS) || _POSIX_C_SOURCE >= 200112L
+//#if defined (BOOST_WINDOWS) || _POSIX_C_SOURCE >= 200112L
 
 #include <cstddef>
 
@@ -36,6 +36,6 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
-#endif
+//#endif
 
 #endif // BOOST_CTX_UTILS_H

Modified: trunk/libs/context/src/guarded_stack_allocator_posix.cpp
==============================================================================
--- trunk/libs/context/src/guarded_stack_allocator_posix.cpp (original)
+++ trunk/libs/context/src/guarded_stack_allocator_posix.cpp 2012-09-07 14:35:02 EDT (Fri, 07 Sep 2012)
@@ -19,7 +19,7 @@
 #include <unistd.h>
 }
 
-#if _POSIX_C_SOURCE >= 200112L
+//#if _POSIX_C_SOURCE >= 200112L
 
 #include <algorithm>
 #include <cmath>
@@ -149,4 +149,4 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
-#endif
+//#endif

Modified: trunk/libs/context/src/utils_posix.cpp
==============================================================================
--- trunk/libs/context/src/utils_posix.cpp (original)
+++ trunk/libs/context/src/utils_posix.cpp 2012-09-07 14:35:02 EDT (Fri, 07 Sep 2012)
@@ -12,7 +12,7 @@
 #include <unistd.h>
 }
 
-#if _POSIX_C_SOURCE >= 200112L
+//#if _POSIX_C_SOURCE >= 200112L
 
 #include <boost/config.hpp>
 
@@ -36,4 +36,4 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
-#endif
+//#endif


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