mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-30 07:42:52 +00:00
coroutine: fix noinline attribute for MSVC in segmented-stack example
[SVN r85977]
This commit is contained in:
@@ -7,11 +7,15 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/coroutine/all.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user