• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


Commit MetaInfo

Revisãof84dab450bcb689bafeae200e4d764675bf5883a (tree)
Hora2016-09-18 04:00:10
AutorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Mensagem de Log

Stricter <wchar.h> ISO-C99 conformity filtering.

Mudança Sumário

Diff

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -1,3 +1,10 @@
1+2016-09-17 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Stricter <wchar.h> ISO-C99 conformity filtering.
4+
5+ * include/wchar.h [__STRICT_ANSI__]: Do not include any part of...
6+ (direct.h, io.h, sys/stat.h, locale.h, process.h): ...any of these.
7+
18 2016-09-14 Keith Marshall <keithmarshall@users.sourceforge.net>
29
310 Relax strict ISO-C conformity to facilitate C99 support.
--- a/mingwrt/include/wchar.h
+++ b/mingwrt/include/wchar.h
@@ -190,7 +190,11 @@
190190 * long double wcstold (const wchar_t *restrict, wchar_t **restrict);
191191 *
192192 *
193- * while from...
193+ * while...
194+ */
195+#ifndef __STRICT_ANSI__
196+/* ...when NOT compiling with "__STRICT_ANSI__" conformity checking,
197+ * from...
194198 */
195199 #include "direct.h"
196200 /* ...we obtain prototypes for each of the following functions,
@@ -203,7 +207,7 @@
203207 * int _wrmdir (const wchar_t *);
204208 *
205209 *
206- * From...
210+ * while from...
207211 */
208212 #include "sys/stat.h"
209213 /* ...we obtain function prototypes, and all associated data type
@@ -228,7 +232,7 @@
228232 * int _wstat64i32 (const wchar_t *, struct _stat64i32 *);
229233 *
230234 *
231- * while from...
235+ * and from...
232236 */
233237 #include "io.h"
234238 /* ...we obtain function prototypes for each of the following, which
@@ -278,12 +282,13 @@
278282 * and _wfindnext() API, so we also declare the prototype for:
279283 *
280284 * int _findclose (intptr_t);
281- *
282- *
283- * and from...
285+ */
286+#endif /* !__STRICT_ANSI__ */
287+
288+/* From...
284289 */
285290 #include "time.h"
286-/* ...we obtain an opaque forward declaration of:
291+/* ...we always obtain an opaque forward declaration of:
287292 *
288293 * struct tm
289294 *
@@ -315,8 +320,10 @@
315320 * _wctime() itself, as an in-line alias for its corresponding
316321 * replacement library function.
317322 *
318- *
319- * Also, from...
323+ */
324+#ifndef __STRICT_ANSI__
325+/* Once again, when NOT compiling with "__STRICT_ANSI__" conformity
326+ * checking, from...
320327 */
321328 #include "locale.h"
322329 /* ...we obtain the declaration for:
@@ -358,6 +365,8 @@
358365 * );
359366 *
360367 */
368+#endif /* !__STRICT_ANSI__ */
369+
361370 _BEGIN_C_DECLS
362371
363372 /* Wide character string functions must be specified here, as required