enclose offsetof macro definition with #ifndef offsetof ... #endif
This commit is contained in:
parent
4c00a9d6aa
commit
0a5e7f9f3f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: libkern.h,v 1.30 2000/05/08 23:33:15 thorpej Exp $ */
|
/* $NetBSD: libkern.h,v 1.31 2000/10/12 03:42:33 msaitoh Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -149,7 +149,9 @@ abs(j)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef offsetof
|
||||||
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
|
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Prototypes for non-quad routines. */
|
/* Prototypes for non-quad routines. */
|
||||||
void __assert __P((const char *, const char *, int, const char *))
|
void __assert __P((const char *, const char *, int, const char *))
|
||||||
|
Loading…
Reference in New Issue
Block a user