diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.115 2004/04/14 07:24:30 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.117 2004/06/22 03:27:16 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -424,6 +424,10 @@ struct winsize { | |||
424 | # define __attribute__(x) | 424 | # define __attribute__(x) |
425 | #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ | 425 | #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ |
426 | 426 | ||
427 | #ifndef __dead | ||
428 | # define __dead __attribute__((noreturn)) | ||
429 | #endif | ||
430 | |||
427 | /* *-*-nto-qnx doesn't define this macro in the system headers */ | 431 | /* *-*-nto-qnx doesn't define this macro in the system headers */ |
428 | #ifdef MISSING_HOWMANY | 432 | #ifdef MISSING_HOWMANY |
429 | # define howmany(x,y) (((x)+((y)-1))/(y)) | 433 | # define howmany(x,y) (((x)+((y)-1))/(y)) |
@@ -462,6 +466,9 @@ struct winsize { | |||
462 | (struct cmsghdr *)NULL) | 466 | (struct cmsghdr *)NULL) |
463 | #endif /* CMSG_FIRSTHDR */ | 467 | #endif /* CMSG_FIRSTHDR */ |
464 | 468 | ||
469 | #ifndef offsetof | ||
470 | # define offsetof(type, member) ((size_t) &((type *)0)->member) | ||
471 | #endif | ||
465 | 472 | ||
466 | /* Function replacement / compatibility hacks */ | 473 | /* Function replacement / compatibility hacks */ |
467 | 474 | ||