Fix __CONCAT() for the ANSI case to work with #define'd args, in

particular, when one of the args is another __CONCAT().
This commit is contained in:
Bruce Evans 1994-12-08 15:42:17 +00:00
parent 1fc232a389
commit e5cb923fab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5012

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)cdefs.h 8.7 (Berkeley) 1/21/94
* $Id: cdefs.h,v 1.5 1994/08/21 04:41:34 paul Exp $
* $Id: cdefs.h,v 1.6 1994/08/22 13:44:39 bde Exp $
*/
#ifndef _SYS_CDEFS_H_
@ -57,7 +57,8 @@
*/
#if defined(__STDC__) || defined(__cplusplus)
#define __P(protos) protos /* full-blown ANSI C */
#define __CONCAT(x,y) x ## y
#define __CONCAT1(x,y) x ## y
#define __CONCAT(x,y) __CONCAT1(x,y)
#define __STRING(x) #x
#define __const const /* define reserved names to standard */