Skip to content
Snippets Groups Projects
Commit f8ccf0d4 authored by Boman Romain's avatar Boman Romain
Browse files

fix disableFpe() for clang

parent 3d5827d3
No related branches found
No related tags found
1 merge request!40Flow v1.4
......@@ -48,8 +48,10 @@ FWK_API void enableFpe()
*/
FWK_API void disableFpe()
{
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__clang__)
std::cout << ANSI_COLOR_BLUE << "Disabling Floating-Point Exceptions..." << ANSI_COLOR_RESET << std::endl;
fedisableexcept(FE_ALL_EXCEPT);
#else
std::cout << "disableFpe() is not implemented" << std::endl;
#endif
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment