Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77259 - trunk/libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-03-08 05:16:27


Author: olli
Date: 2012-03-08 05:16:25 EST (Thu, 08 Mar 2012)
New Revision: 77259
URL: http://svn.boost.org/trac/boost/changeset/77259

Log:
context: enclose fcontext-fn in extern C block in cpp files

Text files modified:
   trunk/libs/context/src/fcontext.cpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/libs/context/src/fcontext.cpp
==============================================================================
--- trunk/libs/context/src/fcontext.cpp (original)
+++ trunk/libs/context/src/fcontext.cpp 2012-03-08 05:16:25 EST (Thu, 08 Mar 2012)
@@ -10,8 +10,6 @@
 
 #include <cstddef>
 
-#include <boost/cstdint.hpp>
-
 #ifdef BOOST_HAS_ABI_HEADERS
 # include BOOST_ABI_PREFIX
 #endif
@@ -19,7 +17,8 @@
 namespace boost {
 namespace contexts {
 
-extern "C" BOOST_CONTEXT_DECL void * BOOST_CONTEXT_CALLDECL boost_fcontext_align( void * vp)
+extern "C" {
+BOOST_CONTEXT_DECL void * BOOST_CONTEXT_CALLDECL boost_fcontext_align( void * vp)
 {
         void * base = vp;
     if ( 0 != ( ( ( uintptr_t) base) & 15) )
@@ -29,10 +28,12 @@
 }
 
 # if !defined(__arm__) && !defined(__powerpc__)
-extern "C" BOOST_CONTEXT_DECL intptr_t BOOST_CONTEXT_CALLDECL boost_fcontext_start( boost_fcontext_t * ofc, boost_fcontext_t const* nfc)
+BOOST_CONTEXT_DECL intptr_t BOOST_CONTEXT_CALLDECL boost_fcontext_start( boost_fcontext_t * ofc, boost_fcontext_t const* nfc)
 { return boost_fcontext_jump( ofc, nfc, 0); }
 #endif
 
+}
+
 }}
 
 #ifdef BOOST_HAS_ABI_HEADERS


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