- nonstandard calling conventions need to be enabled now

- using #ifdef ... #error to detect whether test makes sense for a particular compiler



[SVN r40798]
This commit is contained in:
Tobias Schwinger
2007-11-05 17:20:44 +00:00
parent 20eb828129
commit 60a0af0f66
4 changed files with 24 additions and 0 deletions

View File

@ -6,11 +6,17 @@
//------------------------------------------------------------------------------
#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/member_function_pointer.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
#ifndef BOOST_FT_CC_STDCALL
# error "test not supported with this compiler"
#endif
namespace ft = boost::function_types;
namespace mpl = boost::mpl;

View File

@ -6,11 +6,17 @@
//------------------------------------------------------------------------------
#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/member_function_pointer.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
#ifndef BOOST_FT_CC_STDCALL
# error "test not supported with this compiler"
#endif
namespace ft = boost::function_types;
namespace mpl = boost::mpl;

View File

@ -6,6 +6,8 @@
//------------------------------------------------------------------------------
#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/function_type.hpp>
@ -13,6 +15,10 @@
#include <boost/function_types/function_reference.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
#ifndef BOOST_FT_CC_STDCALL
# error "test not supported with this compiler"
#endif
namespace ft = boost::function_types;
namespace mpl = boost::mpl;

View File

@ -6,6 +6,8 @@
//------------------------------------------------------------------------------
#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/function_types/function_type.hpp>
@ -13,6 +15,10 @@
#include <boost/function_types/function_reference.hpp>
#include <boost/function_types/is_callable_builtin.hpp>
#ifndef BOOST_FT_CC_STDCALL
# error "test not supported with this compiler"
#endif
namespace ft = boost::function_types;
namespace mpl = boost::mpl;