Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/sys Pull up following revision(s) (requested by marti...
details: https://anonhg.NetBSD.org/src/rev/2686e728a7b0
branches: netbsd-6
changeset: 773786:2686e728a7b0
user: riz <riz%NetBSD.org@localhost>
date: Wed Feb 22 18:40:05 2012 +0000
description:
Pull up following revision(s) (requested by martin in ticket #16):
sys/sys/cdefs.h: revision 1.90
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 ec628ad8c8b0 -r 2686e728a7b0 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Mon Feb 20 22:05:01 2012 +0000
+++ b/sys/sys/cdefs.h Wed Feb 22 18:40:05 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.89.6.1 2012/02/22 18:40:05 riz 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