aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-07-01 13:47:25 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-07-01 13:47:25 +0200
commit65cc51288ad9c0545d148ff22feadc6219021078 (patch)
treecf9c045d77fc766a95b145de1fd6601013753ecc /test/main.h
parent22820e950e916917cebfc8aa1633162b847b53f7 (diff)
On windows CE, assert.h defines NDEBUG if DEBUG is not defined
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h
index 2a6b184ae..0f55fef71 100644
--- a/test/main.h
+++ b/test/main.h
@@ -42,6 +42,11 @@
#undef NDEBUG
#endif
+// On windows CE, NDEBUG is automatically defined <assert.h> if NDEBUG is not defined.
+#ifndef DEBUG
+#define DEBUG
+#endif
+
// bounds integer values for AltiVec
#ifdef __ALTIVEC__
#define EIGEN_MAKING_DOCS