From e936b135a77a0305c20efe5ea703a57894179845 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 18 Mar 2005 01:15:49 +0000 Subject: [PATCH] Apparently some are depending on sizeof(bool) to be 1 byte. I don't see this in libcdio, but I suppose it's a possibility. In gcc3 enums are 4 bytes. This patch from Tim Potter forces sizeof(bool) to be 1 byte. --- include/cdio/types.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/include/cdio/types.h b/include/cdio/types.h index a819f868..e291659c 100644 --- a/include/cdio/types.h +++ b/include/cdio/types.h @@ -1,5 +1,5 @@ /* - $Id: types.h,v 1.28 2005/03/01 09:33:52 rocky Exp $ + $Id: types.h,v 1.29 2005/03/18 01:15:49 rocky Exp $ Copyright (C) 2000 Herbert Valerio Riedel Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein @@ -102,15 +102,9 @@ extern "C" { /* ISO/IEC 9899:1999 missing -- enabling workaround */ # ifndef __cplusplus - typedef enum - { - false = 0, - true = 1 - } _cdio_Bool; - -# define false false -# define true true -# define bool _cdio_Bool +# define false 0 +# define true 1 +# define bool uint8_t # endif #endif