The MinGW.org Windows System Libraries
修订版 | 2d00938acd41d9142ae7cbc7aab511e5ab8e655b (tree) |
---|---|
时间 | 2021-05-30 07:02:20 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Correct erroneous mkstemp() availability condition.
@@ -1,3 +1,12 @@ | ||
1 | +2021-05-29 Keith Marshall <keith@users.osdn.me> | |
2 | + | |
3 | + Correct erroneous mkstemp() availability condition. | |
4 | + | |
5 | + * include/stdlib.h (mkstemp): POSIX requires... | |
6 | + [_XOPEN_SOURCE >= 500]: ...this, which is equivalent to... | |
7 | + [_POSIX_C_SOURCE >= 199506L]: ...this, and not (as we had it)... | |
8 | + [_POSIX_C_SOURCE >= 200112L]: ...this; correct it. | |
9 | + | |
1 | 10 | 2021-05-23 Keith Marshall <keith@users.osdn.me> |
2 | 11 | |
3 | 12 | Add a makefile clarification comment. |
@@ -905,9 +905,9 @@ __cdecl __MINGW_NOTHROW wchar_t *ulltow (unsigned long long __n, wchar_t * __w, | ||
905 | 905 | * the basis of appropriate POSIX or BSD specific feature tests... |
906 | 906 | * |
907 | 907 | * mkstemp(3) function support; added per feature request #2003. |
908 | - * POSIX wants _XOPEN_SOURCE >= 500, (implying _POSIX_C_SOURCE >= 200112L). | |
908 | + * POSIX wants _XOPEN_SOURCE >= 500, (implying _POSIX_C_SOURCE >= 199506L). | |
909 | 909 | */ |
910 | -#if _POSIX_C_SOURCE >= 200112L | |
910 | +#if _POSIX_C_SOURCE >= 199506L | |
911 | 911 | |
912 | 912 | __cdecl __MINGW_NOTHROW int mkstemp (char *); |
913 | 913 | __cdecl __MINGW_NOTHROW int __mingw_mkstemp (int, char *); |
@@ -955,7 +955,7 @@ __CRT_ALIAS __LIBIMPL__(( FUNCTION = mkstemp )) | ||
955 | 955 | __cdecl __MINGW_NOTHROW int mkstemp (char *__filename_template) |
956 | 956 | { return __mingw_mkstemp( _MKSTEMP_INVOKE, __filename_template ); } |
957 | 957 | |
958 | -#endif /* _POSIX_C_SOURCE >= 200112L (for mkstemp()) */ | |
958 | +#endif /* _POSIX_C_SOURCE >= 199506L (for mkstemp()) */ | |
959 | 959 | |
960 | 960 | /* mkdtemp(3) function support: added as adjunct to feature request #2003. |
961 | 961 | * POSIX wants _XOPEN_SOURCE >= 700, (implying _POSIX_C_SOURCE >= 200809L). |