The MinGW.org Windows System Libraries
Revisão | 7602ad983922b3d73049121fd49b113a635ee3ee (tree) |
---|---|
Hora | 2016-10-18 20:02:44 |
Autor | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Merge mingwrt-3.22.4 updates into 5.0-active branch.
@@ -7,3 +7,4 @@ c42986e81e9ce0a5fcf8f09012f9d0f038032bac mingwrt-3.22.1-release | ||
7 | 7 | 96dcdb8540b8cdebba812d8125ed29761ec9aa39 mingwrt-3.22.2-release |
8 | 8 | cd725d6ae238714355b000ae9d7c6f3ace34317d w32api-3.18.2-release |
9 | 9 | 9db085b7464425de03f96232b5e6f48d119d8713 mingwrt-3.22.3-release |
10 | +e92b7e85ef0890284b99d2c8243519f77457e2be mingwrt-3.22.4-release |
@@ -1,3 +1,26 @@ | ||
1 | +2016-10-18 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Merge mingwrt-3.22.4 updates into 5.0-active branch. | |
4 | + | |
5 | + * configure.ac: Preserve original 5.0-active state. | |
6 | + * include/wchar.h: Update per 2016-10-17 commits. | |
7 | + | |
8 | +2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net> | |
9 | + | |
10 | + Prepare and tag mingwrt-3.22.4 patch release. | |
11 | + | |
12 | + * configure.ac (AC_INIT): Increment patch level. | |
13 | + | |
14 | +2016-10-17 Keith Marshall <keithmarshall@users.sourceforge.net> | |
15 | + | |
16 | + Resolve an ANSI mode <string.h> vs. <wchar.h> conflict. | |
17 | + | |
18 | + * include/wchar.h [!(_WCHAR_H && _STRING_H)]: Change condition... | |
19 | + [!(_WCHAR_H && (_STRING_H && !__STRICT_ANSI__))]: ...to this; the | |
20 | + guarded declarations are not exposed by including <string.h> when... | |
21 | + [__STRICT_ANSI__]: ...this is defined; hence, we must declare them | |
22 | + when including <wchar.h>, even after including <string.h> | |
23 | + | |
1 | 24 | 2016-10-14 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 25 | |
3 | 26 | Add dependency tracking for tests/Makefile. |
@@ -378,10 +378,13 @@ _BEGIN_C_DECLS | ||
378 | 378 | */ |
379 | 379 | #endif /* ! RC_INVOKED */ |
380 | 380 | #endif /* !__STRING_H_SOURCED__ */ |
381 | -#if ! (defined RC_INVOKED || (defined _WCHAR_H && defined _STRING_H)) | |
382 | -/* ...such that these declarations are exposed when either _WCHAR_H, or | |
383 | - * _STRING_H is defined, (but not both, since that would indicate that | |
384 | - * these declarations have already been processed). | |
381 | +#if ! defined RC_INVOKED | |
382 | +#if !(defined _WCHAR_H && (defined _STRING_H && ! defined __STRICT_ANSI__)) | |
383 | +/* ...such that these declarations are exposed when either _WCHAR_H is defined, | |
384 | + * or when _STRING_H is defined and __STRICT_ANSI__ is not, but NOT when BOTH of | |
385 | + * these apply, since that indicates that this group of declarations has already | |
386 | + * been processed, during partial inclusion of <wchar.h> by <string.h>, whereas | |
387 | + * we are now including <wchar.h> in its own right. | |
385 | 388 | * |
386 | 389 | * |
387 | 390 | * Wide character versions of the ISO-C standard string functions. |
@@ -468,9 +471,10 @@ _CRTIMP __cdecl __MINGW_NOTHROW wchar_t *wcsupr (wchar_t *); | ||
468 | 471 | * inclusion of <string.h>; revert the declarative condition, to make it |
469 | 472 | * specific to <wchar.h> alone. |
470 | 473 | */ |
471 | -#endif /* !(RC_INVOKED || (_WCHAR_H && _STRING_H)) */ | |
472 | -#if defined _WCHAR_H && ! defined RC_INVOKED | |
474 | +#endif /* !(_WCHAR_H && (_STRING_H && !__STRICT_ANSI__)) */ | |
475 | +#endif /* ! RC_INVOKED */ | |
473 | 476 | |
477 | +#if defined _WCHAR_H && ! defined RC_INVOKED | |
474 | 478 | #ifndef __STRICT_ANSI__ |
475 | 479 | typedef wchar_t _Wint_t; |
476 | 480 | #endif |