diff options
author | tholo <tholo@openbsd.org> | 1996-03-24 17:00:37 +0000 |
---|---|---|
committer | tholo <tholo@openbsd.org> | 1996-03-24 17:00:37 +0000 |
commit | ad06aaa950c778597983a5397e5535558c908ee5 (patch) | |
tree | ad7db623d9f51af519881f69076e1568ad4dda8b /sys/sys/cdefs.h | |
parent | Prefix usage of "long long" with a "/* LONGLONG */" comment to shut up (diff) | |
download | wireguard-openbsd-ad06aaa950c778597983a5397e5535558c908ee5.tar.xz wireguard-openbsd-ad06aaa950c778597983a5397e5535558c908ee5.zip |
Our lint(1) understands __const, __inline, __signed and __volatile
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r-- | sys/sys/cdefs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 67f76c89cc0..b618838d406 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.2 1996/03/03 12:11:23 niklas Exp $ */ +/* $OpenBSD: cdefs.h,v 1.3 1996/03/24 17:00:37 tholo Exp $ */ /* $NetBSD: cdefs.h,v 1.15 1995/01/19 01:54:52 jtc Exp $ */ /* @@ -70,9 +70,9 @@ #if defined(__cplusplus) #define __inline inline /* convert to C++ keyword */ #else -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(lint) #define __inline /* delete GCC keyword */ -#endif /* !__GNUC__ */ +#endif /* !__GNUC__ && !lint */ #endif /* !__cplusplus */ #else /* !(__STDC__ || __cplusplus) */ @@ -80,12 +80,12 @@ #define __CONCAT(x,y) x/**/y #define __STRING(x) "x" -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(lint) #define __const /* delete pseudo-ANSI C keywords */ #define __inline #define __signed #define __volatile -#endif /* !__GNUC__ */ +#endif /* !__GNUC__ && !lint */ /* * In non-ANSI C environments, new programs will want ANSI-only C keywords |