X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fconfig%2Ftest%2Fboost_no_ret_det.ipp;h=253e4584228e2860f8b263f82c400d2d956452d5;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=c2f08ac2917f431be8dee7ffdbda923a24586cd7;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/libs/config/test/boost_no_ret_det.ipp b/libs/config/test/boost_no_ret_det.ipp index c2f08ac..253e458 100644 --- a/libs/config/test/boost_no_ret_det.ipp +++ b/libs/config/test/boost_no_ret_det.ipp @@ -12,12 +12,19 @@ // compilers insist on it, while other issue a // bunch of warnings if it is in fact present. +#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) +# include +#endif namespace boost_no_unreachable_return_detection{ int checker() { +#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) + abort(); +#else throw 0; +#endif // no return statement: we don't ever get here... }