* assert.h (assert): Check against both _UNICODE and UNICODE. Reword and reformat a few places. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@2895 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/ChangeLog b/mingw-w64-headers/crt/ChangeLog index a585b9c..931ca5c 100644 --- a/mingw-w64-headers/crt/ChangeLog +++ b/mingw-w64-headers/crt/ChangeLog
@@ -1,3 +1,8 @@ +2010-07-18 Ozkan Sezer <sezeroz@gmail.com> + + * assert.h (assert): Check against both _UNICODE and UNICODE. + Reword and reformat a few places. + 2010-07-18 Kai Tietz <kai.tietz@onevision.com> PR/3031224
diff --git a/mingw-w64-headers/crt/assert.h b/mingw-w64-headers/crt/assert.h index a8962da..c756805 100644 --- a/mingw-w64-headers/crt/assert.h +++ b/mingw-w64-headers/crt/assert.h
@@ -4,11 +4,12 @@ * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ -/* According to C99 standard (section 7.2) the assert macro shall be refined for each time - assert.h gets included dependent to NDEBUG define. */ +/* 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 +#endif /* C99 */ #ifndef __ASSERT_H_ #define __ASSERT_H_ @@ -58,17 +59,17 @@ #ifdef NDEBUG #define assert(_Expression) ((void)0) #else /* !defined (NDEBUG) */ -#ifdef _UNICODE +#if defined(_UNICODE) || defined(UNICODE) #define assert(_Expression) \ (void) \ ((!!(_Expression)) || \ (_wassert(_CRT_WIDE(#_Expression),_CRT_WIDE(__FILE__),__LINE__),0)) -#else +#else /* not unicode */ #define assert(_Expression) \ (void) \ ((!!(_Expression)) || \ (_assert(#_Expression,__FILE__,__LINE__),0)) -#endif - +#endif /* _UNICODE||UNICODE */ #endif /* !defined (NDEBUG) */ #endif /* !defined assert */ +