Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2005-03-31 14:00:26 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2005-03-31 14:00:26 +0400
commita1d1d8ab8008386eceef50aaaa2494d1e5857337 (patch)
tree6f6055972b7f9039701e102108fa0fd08300603d /winsup/mingw
parent12a410132df6b48a78f320cf55a9974e535335d7 (diff)
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog4
-rw-r--r--winsup/mingw/include/_mingw.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 21b729f77..e8406b55c 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
+
2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (__mingw_fwrite): Change return value to
diff --git a/winsup/mingw/include/_mingw.h b/winsup/mingw/include/_mingw.h
index 46c1ce7b9..c30b5eaed 100644
--- a/winsup/mingw/include/_mingw.h
+++ b/winsup/mingw/include/_mingw.h
@@ -136,6 +136,13 @@
#define __MINGW_ATTRIB_PURE
#endif
+/* Attribute `nonnull' was valid as of gcc 3.3. */
+#if (__GNUC__ > 3 ||( __GNUC__ == 3 && __GNUC_MINOR >= 3))
+#define __MINGW_ATTRIB_NONNULL(args...) __attribute__ ((__nonnull__ (args)))
+#else
+#define __MINGW_ATTRIB_NONNULL(args...)
+#endif /* GNUC >= 3.3 */
+
#ifndef __MSVCRT_VERSION__
/* High byte is the major version, low byte is the minor. */
# define __MSVCRT_VERSION__ 0x0600