• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: Commit

The MinGW.OSDN Windows System Libraries. Formerly designated as "MinGW.org Windows System Libraries", this encapsulates the "mingwrt" C runtime library extensions, and the "w32api" 32-bit MS-Windows API libraries.

Please note that this project no longer owns the "MinGW.org" domain name; any software which may be distributed from that domain is NOT supported by this project.


Commit MetaInfo

Revision2d00938acd41d9142ae7cbc7aab511e5ab8e655b (tree)
Zeit2021-05-30 07:02:20
AutorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Correct erroneous mkstemp() availability condition.

Ändern Zusammenfassung

Diff

--- 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