Newer GCCs give warnings when the result of preprocessor token pasting

is not itself a valid (single) preprocessor token.  In other words, don't
use __CONCAT() to add a structure member name to a pointer dereference.
This commit is contained in:
cgd 2000-12-19 22:20:48 +00:00
parent 96698d967e
commit b2b63ed4f4
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: strptime.c,v 1.20 2000/07/07 08:03:41 itohy Exp $ */
/* $NetBSD: strptime.c,v 1.21 2000/12/19 22:20:48 cgd Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: strptime.c,v 1.20 2000/07/07 08:03:41 itohy Exp $");
__RCSID("$NetBSD: strptime.c,v 1.21 2000/12/19 22:20:48 cgd Exp $");
#endif
#include "namespace.h"
@ -52,7 +52,7 @@ __RCSID("$NetBSD: strptime.c,v 1.20 2000/07/07 08:03:41 itohy Exp $");
__weak_alias(strptime,_strptime)
#endif
#define _ctloc(x) __CONCAT(_CurrentTimeLocale->,x)
#define _ctloc(x) (_CurrentTimeLocale->x)
/*
* We do not implement alternate representations. However, we always