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)