* ctype.h (__mb_cur_max): Define as __mb_cur_max for the _MSVCRT_ special case. * stdlib.h: Remove the duplicated and typographically erroneous __mbcur_max macros. Make the entries identical to the ctype.h counterparts. (__mb_cur_max): Define as __mb_cur_max for the _MSVCRT_ special case. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/branches/releases/v1.0@4176 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/ChangeLog b/mingw-w64-headers/include/ChangeLog index 8a4810a..3278e48 100644 --- a/mingw-w64-headers/include/ChangeLog +++ b/mingw-w64-headers/include/ChangeLog
@@ -1,3 +1,12 @@ +2011-05-23 Ozkan Sezer <sezeroz@gmail.com> + + * ctype.h (__mb_cur_max): Define as __mb_cur_max for the _MSVCRT_ + special case. + * stdlib.h: Remove the duplicated and typographically erroneous + __mbcur_max macros. Make the entries identical to the ctype.h + counterparts. + (__mb_cur_max): Define as __mb_cur_max for the _MSVCRT_ special case. + 2011-05-05 Ozkan Sezer <sezeroz@gmail.com> Merged from trunk:
diff --git a/mingw-w64-headers/include/ctype.h b/mingw-w64-headers/include/ctype.h index ec07c31..5e5df51 100644 --- a/mingw-w64-headers/include/ctype.h +++ b/mingw-w64-headers/include/ctype.h
@@ -189,9 +189,10 @@ #ifndef __mb_cur_max #ifdef _MSVCRT_ extern int __mb_cur_max; +#define __mb_cur_max __mb_cur_max #else extern int * __MINGW_IMP_SYMBOL(__mb_cur_max); -#define __mb_cur_max (* __MINGW_IMP_SYMBOL(__mb_cur_max)) +#define __mb_cur_max (* __MINGW_IMP_SYMBOL(__mb_cur_max)) #endif #endif #define ___mb_cur_max_func() (__mb_cur_max)
diff --git a/mingw-w64-headers/include/stdlib.h b/mingw-w64-headers/include/stdlib.h index f884b21..603e755 100644 --- a/mingw-w64-headers/include/stdlib.h +++ b/mingw-w64-headers/include/stdlib.h
@@ -96,18 +96,13 @@ #ifndef __mb_cur_max #ifdef _MSVCRT_ extern int __mb_cur_max; +#define __mb_cur_max __mb_cur_max #else extern int * __MINGW_IMP_SYMBOL(__mb_cur_max); #define __mb_cur_max (* __MINGW_IMP_SYMBOL(__mb_cur_max)) #endif #endif -#ifdef _MSVCRT_ - extern int __mbcur_max; #define ___mb_cur_max_func() (__mb_cur_max) -#else - extern int* __MINGW_IMP_SYMBOL(__mbcur_max); -#define ___mb_cur_max_func() (* __MINGW_IMP_SYMBOL(__mb_cur_max)) -#endif #endif #define __max(a,b) (((a) > (b)) ? (a) : (b))