• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: 提交

The MinGW.org Windows System Libraries


Commit MetaInfo

修訂2d00938acd41d9142ae7cbc7aab511e5ab8e655b (tree)
時間2021-05-30 07:02:20
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Correct erroneous mkstemp() availability condition.

Change Summary

差異

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -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+
110 2021-05-23 Keith Marshall <keith@users.osdn.me>
211
312 Add a makefile clarification comment.
--- a/mingwrt/include/stdlib.h
+++ b/mingwrt/include/stdlib.h
@@ -905,9 +905,9 @@ __cdecl __MINGW_NOTHROW wchar_t *ulltow (unsigned long long __n, wchar_t * __w,
905905 * the basis of appropriate POSIX or BSD specific feature tests...
906906 *
907907 * 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).
909909 */
910-#if _POSIX_C_SOURCE >= 200112L
910+#if _POSIX_C_SOURCE >= 199506L
911911
912912 __cdecl __MINGW_NOTHROW int mkstemp (char *);
913913 __cdecl __MINGW_NOTHROW int __mingw_mkstemp (int, char *);
@@ -955,7 +955,7 @@ __CRT_ALIAS __LIBIMPL__(( FUNCTION = mkstemp ))
955955 __cdecl __MINGW_NOTHROW int mkstemp (char *__filename_template)
956956 { return __mingw_mkstemp( _MKSTEMP_INVOKE, __filename_template ); }
957957
958-#endif /* _POSIX_C_SOURCE >= 200112L (for mkstemp()) */
958+#endif /* _POSIX_C_SOURCE >= 199506L (for mkstemp()) */
959959
960960 /* mkdtemp(3) function support: added as adjunct to feature request #2003.
961961 * POSIX wants _XOPEN_SOURCE >= 700, (implying _POSIX_C_SOURCE >= 200809L).
Show on old repository browser