summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-07-22 23:14:32 +0000
committerimp <imp@FreeBSD.org>2003-07-22 23:14:32 +0000
commita543cf12b17d0b04382626cf72a6b2dbc2083a48 (patch)
tree75f8fa28affc7b5f1980dbbdcc27c360fad973d1
parentb6602673518c7d901505bfa1fa7d90d302dc6ab0 (diff)
downloadFreeBSD-src-a543cf12b17d0b04382626cf72a6b2dbc2083a48.zip
FreeBSD-src-a543cf12b17d0b04382626cf72a6b2dbc2083a48.tar.gz
There is strong reason to believe that gcc 4 will also support
__attribute__((__nonnull__(x)), assume it so.
-rw-r--r--sys/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index b3a5485..b9bc815 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -143,7 +143,7 @@
#endif
#endif
-#if __GNUC__ == 3 && __GNUC_MINOR__ >= 3
+#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4
#define __nonnull(x) __attribute__((__nonnull__(x)))
#else
#define __nonnull(x)
OpenPOWER on IntegriCloud