Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78126 - trunk/boost/context/detail
From: oliver.kowalke_at_[hidden]
Date: 2012-04-22 04:35:41


Author: olli
Date: 2012-04-22 04:35:40 EDT (Sun, 22 Apr 2012)
New Revision: 78126
URL: http://svn.boost.org/trac/boost/changeset/78126

Log:
context: add pragma stuff to Win32/Win64 fcontext headers
Text files modified:
   trunk/boost/context/detail/fcontext_i386_win.hpp | 4 ++++
   trunk/boost/context/detail/fcontext_x86_64_win.hpp | 13 +++++++++++++
   2 files changed, 17 insertions(+), 0 deletions(-)

Modified: trunk/boost/context/detail/fcontext_i386_win.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_i386_win.hpp (original)
+++ trunk/boost/context/detail/fcontext_i386_win.hpp 2012-04-22 04:35:40 EDT (Sun, 22 Apr 2012)
@@ -7,6 +7,10 @@
 #ifndef BOOST_CTX_DETAIL_FCONTEXT_I386H
 #define BOOST_CTX_DETAIL_FCONTEXT_I386H
 
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+# pragma once
+#endif
+
 #include <boost/config.hpp>
 #include <boost/cstdint.hpp>
 

Modified: trunk/boost/context/detail/fcontext_x86_64_win.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_x86_64_win.hpp (original)
+++ trunk/boost/context/detail/fcontext_x86_64_win.hpp 2012-04-22 04:35:40 EDT (Sun, 22 Apr 2012)
@@ -7,12 +7,21 @@
 #ifndef BOOST_CTX_DETAIL_FCONTEXT_X86_64_H
 #define BOOST_CTX_DETAIL_FCONTEXT_X86_64_H
 
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+# pragma once
+#endif
+
 #include <boost/assert.hpp>
 #include <boost/config.hpp>
 #include <boost/cstdint.hpp>
 
 #include <boost/context/detail/config.hpp>
 
+#ifdef BOOST_MSVC
+# pragma warning(push)
+# pragma warning(disable:4351)
+#endif
+
 #ifdef BOOST_HAS_ABI_HEADERS
 # include BOOST_ABI_PREFIX
 #endif
@@ -76,4 +85,8 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
+#ifdef BOOST_MSVC
+# pragma warning(pop)
+#endif
+
 #endif // BOOST_CTX_DETAIL_FCONTEXT_X86_64_H


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