Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys PR 46040:
details: https://anonhg.NetBSD.org/src/rev/010d5e6ce4d0
branches: trunk
changeset: 777411:010d5e6ce4d0
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Feb 17 18:58:51 2012 +0000
description:
PR 46040:
If the current compiler doesn't support C99, check if it is compatible
with GCC 2.92. In that case, use the protected __restricted__ form.
In any other case, default to removing __restricted.
diffstat:
sys/sys/cdefs.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 0177dc81c534 -r 010d5e6ce4d0 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Fri Feb 17 18:42:19 2012 +0000
+++ b/sys/sys/cdefs.h Fri Feb 17 18:58:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.89 2011/11/05 09:27:06 joerg Exp $ */
+/* $NetBSD: cdefs.h,v 1.90 2012/02/17 18:58:51 joerg Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -338,7 +338,9 @@
#define __restrict /* delete __restrict when not supported */
#elif __STDC_VERSION__ >= 199901L
#define __restrict restrict
-#elif !__GNUC_PREREQ__(2, 92)
+#elif __GNUC_PREREQ__(2, 92)
+#define __restrict __restrict__
+#else
#define __restrict /* delete __restrict when not supported */
#endif
Home |
Main Index |
Thread Index |
Old Index