Enable Win32 Release asserts.
authorJamie Madill <jmadill@google.com>
Wed, 18 Feb 2015 16:17:27 +0000 (11:17 -0500)
committerPyry Haulos <phaulos@google.com>
Thu, 19 Feb 2015 20:32:23 +0000 (12:32 -0800)
Use the same workaround as for UNIX OSes, where the code undefs
NDEBUG before including assert.h.

Change-Id: I2b6b31c4b6a88d2635b30087a9e36849fcb9f8e7

framework/delibs/debase/deDefs.c

index caf345f..b664724 100644 (file)
@@ -43,7 +43,7 @@ DE_STATIC_ASSERT(DE_PTR_SIZE          == sizeof(void*));
 #      error "DE_CPU and DE_PTR_SIZE mismatch"
 #endif
 
-#if (DE_OS == DE_OS_UNIX) && defined(NDEBUG)
+#if (DE_OS == DE_OS_UNIX || DE_OS == DE_OS_WIN32) && defined(NDEBUG)
        /* We need __assert_fail declaration from assert.h */
 #      undef NDEBUG
 #endif