• 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

Revisión16c8f8b4fb192900841e143f02779ab649b57481 (tree)
Tiempo2020-03-05 22:49:29
AutorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Let _ISOC11_SOURCE imply _ISOC99_SOURCE.

Cambiar Resumen

Diferencia incremental

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -1,5 +1,12 @@
11 2020-03-05 Keith Marshall <keith@users.osdn.me>
22
3+ Let _ISOC11_SOURCE imply _ISOC99_SOURCE.
4+
5+ * include/_mingw.h.in [! defined _ISOC99_SOURCE]
6+ [defined _ISOC11_SOURCE] (_ISOC99_SOURCE): Define as 0x0F.
7+
8+2020-03-05 Keith Marshall <keith@users.osdn.me>
9+
310 Avoid deprecated specification of esp in asm clobber list.
411
512 * crt1.c (__mingw_CRTStartup): In inline assembly, forced modulo-16
--- a/mingwrt/include/_mingw.h.in
+++ b/mingwrt/include/_mingw.h.in
@@ -7,7 +7,7 @@
77 * $Id$
88 *
99 * Written by Mumit Khan <khan@xraylith.wisc.edu>
10- * Copyright (C) 1999, 2001-2011, 2014-2019, MinGW.org Project
10+ * Copyright (C) 1999, 2001-2011, 2014-2020, MinGW.org Project
1111 *
1212 *
1313 * Permission is hereby granted, free of charge, to any person obtaining a
@@ -569,7 +569,14 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */
569569 * to ensure that we can identify the reason for implicit declaration,
570570 * (in the event that we may need to discriminate).
571571 */
572-# if __STDC_VERSION__ >= 199901L
572+# ifdef _ISOC11_SOURCE
573+ /* The user has explicitly selected ISO-C11 compliance; regardless of
574+ * requested C11 compliance level, implicitly enable C99 compliance to
575+ * the maximum level supported.
576+ */
577+# define _ISOC99_SOURCE 0x0F
578+
579+# elif __STDC_VERSION__ >= 199901L
573580 /* This represents a compiler supporting ISO-C99; enable all potential
574581 * use of ISO-C99 features, (to the maximum extent supportable), which
575582 * presumably also covers all C++11 and POSIX.1 usage.
Show on old repository browser