From 60a0af0f668d35565dcae02ca90b173980294a68 Mon Sep 17 00:00:00 2001 From: Tobias Schwinger Date: Mon, 5 Nov 2007 17:20:44 +0000 Subject: [PATCH] - nonstandard calling conventions need to be enabled now - using #ifdef ... #error to detect whether test makes sense for a particular compiler [SVN r40798] --- test/custom_ccs/member_ccs.cpp | 6 ++++++ test/custom_ccs/member_ccs_exact.cpp | 6 ++++++ test/custom_ccs/nonmember_ccs.cpp | 6 ++++++ test/custom_ccs/nonmember_ccs_exact.cpp | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/test/custom_ccs/member_ccs.cpp b/test/custom_ccs/member_ccs.cpp index 28e0c1a..727b38b 100644 --- a/test/custom_ccs/member_ccs.cpp +++ b/test/custom_ccs/member_ccs.cpp @@ -6,11 +6,17 @@ //------------------------------------------------------------------------------ +#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS + #include #include #include #include +#ifndef BOOST_FT_CC_STDCALL +# error "test not supported with this compiler" +#endif + namespace ft = boost::function_types; namespace mpl = boost::mpl; diff --git a/test/custom_ccs/member_ccs_exact.cpp b/test/custom_ccs/member_ccs_exact.cpp index 381f69f..2decf14 100644 --- a/test/custom_ccs/member_ccs_exact.cpp +++ b/test/custom_ccs/member_ccs_exact.cpp @@ -6,11 +6,17 @@ //------------------------------------------------------------------------------ +#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS + #include #include #include #include +#ifndef BOOST_FT_CC_STDCALL +# error "test not supported with this compiler" +#endif + namespace ft = boost::function_types; namespace mpl = boost::mpl; diff --git a/test/custom_ccs/nonmember_ccs.cpp b/test/custom_ccs/nonmember_ccs.cpp index 18a73ff..98bf3d5 100644 --- a/test/custom_ccs/nonmember_ccs.cpp +++ b/test/custom_ccs/nonmember_ccs.cpp @@ -6,6 +6,8 @@ //------------------------------------------------------------------------------ +#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS + #include #include #include @@ -13,6 +15,10 @@ #include #include +#ifndef BOOST_FT_CC_STDCALL +# error "test not supported with this compiler" +#endif + namespace ft = boost::function_types; namespace mpl = boost::mpl; diff --git a/test/custom_ccs/nonmember_ccs_exact.cpp b/test/custom_ccs/nonmember_ccs_exact.cpp index 808ded3..31f73c0 100644 --- a/test/custom_ccs/nonmember_ccs_exact.cpp +++ b/test/custom_ccs/nonmember_ccs_exact.cpp @@ -6,6 +6,8 @@ //------------------------------------------------------------------------------ +#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS + #include #include #include @@ -13,6 +15,10 @@ #include #include +#ifndef BOOST_FT_CC_STDCALL +# error "test not supported with this compiler" +#endif + namespace ft = boost::function_types; namespace mpl = boost::mpl;