From 3ad3e2f1a00b83065aa613b05f7e5ca64cb63fb9 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Sat, 28 Sep 2013 06:15:48 +0000 Subject: [PATCH] coroutine: fix noinline attribute for MSVC in segmented-stack example [SVN r85977] --- example/cpp03/segmented_stack.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/cpp03/segmented_stack.cpp b/example/cpp03/segmented_stack.cpp index 6ca4b9f..1a97a89 100644 --- a/example/cpp03/segmented_stack.cpp +++ b/example/cpp03/segmented_stack.cpp @@ -7,11 +7,15 @@ #include #include +#include #include #include -int count = 20; -#if defined(BOOST_USE_SEGMENTED_STACKS) +int count = 50; + +#ifdef BOOST_MSVC //MS VisualStudio +__declspec(noinline) void access( char *buf); +#else // GCC void access( char *buf) __attribute__ ((noinline)); #endif void access( char *buf)