summaryrefslogtreecommitdiff
path: root/boost/context/detail/fcontext_x86_64.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/context/detail/fcontext_x86_64.hpp')
-rw-r--r--boost/context/detail/fcontext_x86_64.hpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/boost/context/detail/fcontext_x86_64.hpp b/boost/context/detail/fcontext_x86_64.hpp
index 106ee74065..6e8d93c0cb 100644
--- a/boost/context/detail/fcontext_x86_64.hpp
+++ b/boost/context/detail/fcontext_x86_64.hpp
@@ -4,8 +4,10 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
-#ifndef BOOST_CTX_DETAIL_FCONTEXT_X86_64_H
-#define BOOST_CTX_DETAIL_FCONTEXT_X86_64_H
+#ifndef BOOST_CONTEXT_DETAIL_FCONTEXT_X86_64_H
+#define BOOST_CONTEXT_DETAIL_FCONTEXT_X86_64_H
+
+#include <cstddef>
#include <boost/config.hpp>
#include <boost/cstdint.hpp>
@@ -17,7 +19,7 @@
#endif
namespace boost {
-namespace ctx {
+namespace context {
extern "C" {
@@ -25,11 +27,11 @@ extern "C" {
struct stack_t
{
- void * base;
- void * limit;
+ void * sp;
+ std::size_t size;
stack_t() :
- base( 0), limit( 0)
+ sp( 0), size( 0)
{}
};
@@ -63,4 +65,4 @@ struct fcontext_t
# include BOOST_ABI_SUFFIX
#endif
-#endif // BOOST_CTX_DETAIL_FCONTEXT_X86_64_H
+#endif // BOOST_CONTEXT_DETAIL_FCONTEXT_X86_64_H