summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-07-14 17:22:11 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-07-14 17:22:11 +1000
commit4a42257b06fed3f2ec60ca27175d7db76761aebc (patch)
treee163fa7e0c64e9161a84d031a41f614242c1a8fd /defines.h
parent8e2eb308d09f6bbf5c66c029090c527bc9346db8 (diff)
- (dtucker) [configure.ac defines.h] Define __sentinel__ to nothing if the
compiler doesn't understand it to prevent warnings. If any mainstream compiler versions acquire it we can test for those versions. Based on discussion with djm@.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 3a11e6d65..f7029abb4 100644
--- a/defines.h
+++ b/defines.h
@@ -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.121 2005/05/27 11:13:41 dtucker Exp $ */ 28/* $Id: defines.h,v 1.122 2005/07/14 07:22:11 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -436,6 +436,10 @@ struct winsize {
436# define __dead __attribute__((noreturn)) 436# define __dead __attribute__((noreturn))
437#endif 437#endif
438 438
439#if !defined(HAVE_ATTRIBUTE__SENTINEL__) && !defined(__sentinel__)
440# define __sentinel__
441#endif
442
439/* *-*-nto-qnx doesn't define this macro in the system headers */ 443/* *-*-nto-qnx doesn't define this macro in the system headers */
440#ifdef MISSING_HOWMANY 444#ifdef MISSING_HOWMANY
441# define howmany(x,y) (((x)+((y)-1))/(y)) 445# define howmany(x,y) (((x)+((y)-1))/(y))