]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix FPE #include. 1402/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 20 Aug 2015 20:18:54 +0000 (15:18 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 20 Aug 2015 20:18:54 +0000 (15:18 -0500)
We only need the #include if we actually use the functions the file
provides. Disable it otherwise to ensure that the tests continue to
run on platforms that don't provide <cfenv>.

tests/tests.h

index 2d8cfbaa9298e576eb7b1b3a41faf2c9d69099d4..dbc8ab05757e517c6958c63d2eca7cdd7227b611 100644 (file)
@@ -32,7 +32,9 @@
 #include <sstream>
 #include <iomanip>
 
-#include <cfenv>
+#if defined(DEBUG) && defined(DEAL_II_HAVE_FP_EXCEPTIONS)
+#  include <cfenv>
+#endif
 
 
 // silence extra diagnostics in the testsuite

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.