Module Name: src Committed By: christos Date: Tue Dec 14 20:12:48 UTC 2021
Modified Files: src/sys/sys: cdefs.h Log Message: don't gut restrict for lint. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.157 src/sys/sys/cdefs.h:1.158 --- src/sys/sys/cdefs.h:1.157 Fri Apr 23 01:56:43 2021 +++ src/sys/sys/cdefs.h Tue Dec 14 15:12:48 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.157 2021/04/23 05:56:43 skrll Exp $ */ +/* $NetBSD: cdefs.h,v 1.158 2021/12/14 20:12:48 christos Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -469,11 +469,9 @@ * C99 defines the restrict type qualifier keyword, which was made available * in GCC 2.92. */ -#if defined(__lint__) -#define __restrict /* delete __restrict when not supported */ -#elif __STDC_VERSION__ >= 199901L +#if __STDC_VERSION__ >= 199901L #define __restrict restrict -#elif __GNUC_PREREQ__(2, 92) || defined(__lint__) +#elif __GNUC_PREREQ__(2, 92) #define __restrict __restrict__ #else #define __restrict /* delete __restrict when not supported */