diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 14:49:21 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-04-29 14:49:21 +1000 |
commit | 391de5c0237a452d7653e88b54c825a5fb468e3a (patch) | |
tree | c71827c2486b9d356be5ec2a0a5ec92657703497 /defines.h | |
parent | 6d862a50dbe6a473c2e204d85d3e66e6a0293614 (diff) |
- (dtucker) [configure.ac defines.h] Prevent warnings about __attribute__
__nonnull__ for versions of GCC that don't support it.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 6 |
1 files changed, 5 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.140 2007/04/29 04:39:03 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.141 2007/04/29 04:49:21 dtucker Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -449,6 +449,10 @@ struct winsize { | |||
449 | # define __bounded__(x, y, z) | 449 | # define __bounded__(x, y, z) |
450 | #endif | 450 | #endif |
451 | 451 | ||
452 | #if !defined(HAVE_ATTRIBUTE__NONNULL__) && !defined(__nonnull__) | ||
453 | # define __nonnull__(x) | ||
454 | #endif | ||
455 | |||
452 | /* *-*-nto-qnx doesn't define this macro in the system headers */ | 456 | /* *-*-nto-qnx doesn't define this macro in the system headers */ |
453 | #ifdef MISSING_HOWMANY | 457 | #ifdef MISSING_HOWMANY |
454 | # define howmany(x,y) (((x)+((y)-1))/(y)) | 458 | # define howmany(x,y) (((x)+((y)-1))/(y)) |