* assert.h: Always undefine and redefine assert() based on NDEBUG.

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/branches/releases/v1.0@3717 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/ChangeLog b/mingw-w64-headers/include/ChangeLog
index 5b81f37..4ef3557 100644
--- a/mingw-w64-headers/include/ChangeLog
+++ b/mingw-w64-headers/include/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-10  Ozkan Sezer  <sezeroz@gmail.com>
+
+	* assert.h: Always undefine and redefine assert() based on NDEBUG.
+
 2010-09-26  Ozkan Sezer  <sezeroz@gmail.com>
 
 	* evntcons.h: Add missing constants and remove associated fixme notes.
diff --git a/mingw-w64-headers/include/assert.h b/mingw-w64-headers/include/assert.h
index c756805..5343f35 100644
--- a/mingw-w64-headers/include/assert.h
+++ b/mingw-w64-headers/include/assert.h
@@ -7,9 +7,7 @@
 /* According to C99 standard (section 7.2) the assert
    macro shall be redefined each time assert.h gets
    included depending on the status of NDEBUG macro.  */
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #undef assert
-#endif /* C99 */
 
 #ifndef __ASSERT_H_
 #define __ASSERT_H_
@@ -55,7 +53,6 @@
 
 #endif /* !defined (__ASSERT_H_) */
 
-#ifndef assert
 #ifdef NDEBUG
 #define assert(_Expression) ((void)0)
 #else /* !defined (NDEBUG) */
@@ -71,5 +68,4 @@
   (_assert(#_Expression,__FILE__,__LINE__),0))
 #endif /* _UNICODE||UNICODE */
 #endif /* !defined (NDEBUG) */
-#endif /* !defined assert */