aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-05-03 08:09:35 -0400
committerJason Merrill <jason@gcc.gnu.org>2002-05-03 08:09:35 -0400
commit609688f3c4bc401bddf70e0b3a7ed02a99a9294c (patch)
tree9ab8b45e49c0b7f6ff711d8ba5e370033a2c0ef8 /gcc/config/rs6000
parent3b03c671adb3d46d7ccfddba9e750e032287afc4 (diff)
downloadgcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.zip
gcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.tar.gz
gcc-609688f3c4bc401bddf70e0b3a7ed02a99a9294c.tar.bz2
defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c. * c-decl.c (c_init_decl_processing): Use it. * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE. * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define. * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define. From-SVN: r53089
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/darwin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 31efaac..81c24e7 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -233,3 +233,7 @@ Boston, MA 02111-1307, USA. */
space/speed. */
#undef MAX_LONG_TYPE_SIZE
#define MAX_LONG_TYPE_SIZE 32
+
+/* For binary compatibility with 2.95; Darwin C APIs use bool from
+ stdbool.h, which was an int-sized enum in 2.95. */
+#define BOOL_TYPE_SIZE INT_TYPE_SIZE