From a3c568f9db97893eb1358b243de08bf62a942332 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 4 Nov 1997 23:22:40 +0000 Subject: [PATCH] - define ___STRING() and ___CONCAT() macros which invoke their double-underscore counterparts (cpp evil). - define __RENAME() to do what lint expects, so that renamed functions are handled properly. From Chris Demetriou . --- sys/sys/cdefs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 366a3435b1a4..50c64d49c5c7 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.22 1997/10/24 15:32:48 christos Exp $ */ +/* $NetBSD: cdefs.h,v 1.23 1997/11/04 23:22:40 thorpej Exp $ */ /* * Copyright (c) 1991, 1993 @@ -86,6 +86,9 @@ #define __volatile #endif /* !__GNUC__ */ +#define ___STRING(x) __STRING(x) +#define ___CONCAT(x) __CONCAT(x) + /* * In non-ANSI C environments, new programs will want ANSI-only C keywords * deleted from the program and old programs will want them left alone. @@ -142,8 +145,8 @@ /* This is defined in */ #ifndef __RENAME -#ifdef __lint -#define __RENAME(a) +#ifdef __lint__ +#define __RENAME(a) __symbolrename(a) #else #error "No function renaming possible" #endif