Fix clang warning for undefined msvc symbol check

This commit is contained in:
Jason Turner 2018-05-08 09:46:01 -06:00
parent 06191646d2
commit f695a24e1b

View File

@ -86,7 +86,7 @@ namespace chaiscript
// only compile this bit if noexcept is part of the type system // only compile this bit if noexcept is part of the type system
// //
#if __cpp_noexcept_function_type >= 201510 || (defined(_NOEXCEPT_TYPES_SUPPORTED) && _MSC_VER >= 1912) #if (defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510) || (defined(_NOEXCEPT_TYPES_SUPPORTED) && _MSC_VER >= 1912)
template<typename Ret, typename ... Param> template<typename Ret, typename ... Param>
Proxy_Function fun(Ret (*func)(Param...) noexcept) Proxy_Function fun(Ret (*func)(Param...) noexcept)
{ {