summaryrefslogtreecommitdiff
path: root/src/cppunit/TestAssert.cpp
diff options
context:
space:
mode:
authorSteve M. Robbins <smr@sumost.ca>2001-08-07 14:48:10 +0000
committerSteve M. Robbins <smr@sumost.ca>2001-08-07 14:48:10 +0000
commitde0befb6d7ba3d1e6bbc67ca9c86d04412f2fb08 (patch)
tree82b5db63068a03299e907eec4f05b1609639a17d /src/cppunit/TestAssert.cpp
parente0dd3c214df341b058c2d43f32c6521688853000 (diff)
downloadcppunit-de0befb6d7ba3d1e6bbc67ca9c86d04412f2fb08.tar.gz
Fixes to allow building with SGI MIPSpro 7.30 compiler.
The testsuite file examples/cppunittest/SubclassedTestCase.cpp causes the compiler to dump core, so that and HelperMacrosTest were not tested. The rest of the test suite passes.
Diffstat (limited to 'src/cppunit/TestAssert.cpp')
-rw-r--r--src/cppunit/TestAssert.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cppunit/TestAssert.cpp b/src/cppunit/TestAssert.cpp
index 9d8a408..72d48d9 100644
--- a/src/cppunit/TestAssert.cpp
+++ b/src/cppunit/TestAssert.cpp
@@ -1,4 +1,8 @@
-#include <cmath>
+#if HAVE_CMATH
+# include <cmath>
+#else
+# include <math.h>
+#endif
#include <cppunit/TestAssert.h>
#include <cppunit/NotEqualException.h>