fix inadequate parens in macro (my fault originally)
This commit is contained in:
parent
01ea4fedd8
commit
d00f46d557
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dirent.h,v 1.28 2011/09/27 01:40:32 christos Exp $ */
|
/* $NetBSD: dirent.h,v 1.29 2015/02/26 02:05:54 dholland Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -91,7 +91,7 @@ struct dirent {
|
||||||
* struct dirent
|
* struct dirent
|
||||||
*/
|
*/
|
||||||
#if __GNUC_PREREQ__(4, 0)
|
#if __GNUC_PREREQ__(4, 0)
|
||||||
#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof__(*dp), d_name)
|
#define _DIRENT_NAMEOFF(dp) __builtin_offsetof(__typeof__(*(dp)), d_name)
|
||||||
#else
|
#else
|
||||||
#define _DIRENT_NAMEOFF(dp) \
|
#define _DIRENT_NAMEOFF(dp) \
|
||||||
((char *)(void *)&(dp)->d_name - (char *)(void *)dp)
|
((char *)(void *)&(dp)->d_name - (char *)(void *)dp)
|
||||||
|
|
Loading…
Reference in New Issue