summaryrefslogtreecommitdiffstats
path: root/gl/stdbool.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/stdbool.in.h')
-rw-r--r--gl/stdbool.in.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/stdbool.in.h b/gl/stdbool.in.h
index 171d70a..cffa0ab 100644
--- a/gl/stdbool.in.h
+++ b/gl/stdbool.in.h
@@ -1,4 +1,4 @@
1/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. 1/* Copyright (C) 2001-2003, 2006-2008 Free Software Foundation, Inc.
2 Written by Bruno Haible <haible@clisp.cons.org>, 2001. 2 Written by Bruno Haible <haible@clisp.cons.org>, 2001.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
@@ -58,7 +58,7 @@
58 58
59/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same 59/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
60 definitions below, but temporarily we have to #undef them. */ 60 definitions below, but temporarily we have to #undef them. */
61#ifdef __BEOS__ 61#if defined __BEOS__ && !defined __HAIKU__
62# include <OS.h> /* defines bool but not _Bool */ 62# include <OS.h> /* defines bool but not _Bool */
63# undef false 63# undef false
64# undef true 64# undef true
@@ -73,7 +73,7 @@
73 (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' 73 (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
74 (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the 74 (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
75 enum; this ensures that '_Bool' promotes to 'int'. */ 75 enum; this ensures that '_Bool' promotes to 'int'. */
76#if defined __cplusplus || defined __BEOS__ 76#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
77 /* A compiler known to have 'bool'. */ 77 /* A compiler known to have 'bool'. */
78 /* If the compiler already has both 'bool' and '_Bool', we can assume they 78 /* If the compiler already has both 'bool' and '_Bool', we can assume they
79 are the same types. */ 79 are the same types. */