include <stdbool.h> only if not C++.

This commit is contained in:
rocky
2005-09-17 20:57:19 +00:00
parent 7895f93f0e
commit 3a1145614b
5 changed files with 20 additions and 21 deletions

7
NEWS
View File

@@ -1,11 +1,10 @@
$Id: NEWS,v 1.79 2005/09/17 01:42:55 rocky Exp $ $Id: NEWS,v 1.80 2005/09/17 20:57:19 rocky Exp $
version 0.76 version 0.76
===================================== =====================================
2005-??-?? 2005-??-??
- Make libiso9660 and libcdio_cdda compile under C++ and add example - Better compatibility with C++
programs to make sure this gets tested
- a better eject routine for FreeBSD - a better eject routine for FreeBSD
@@ -280,4 +279,4 @@ version 0.1
Routines split off from VCDImager. Routines split off from VCDImager.
$Id: NEWS,v 1.79 2005/09/17 01:42:55 rocky Exp $ $Id: NEWS,v 1.80 2005/09/17 20:57:19 rocky Exp $

View File

@@ -1,5 +1,5 @@
/* /*
$Id: types.h,v 1.31 2005/03/21 10:43:08 rocky Exp $ $Id: types.h,v 1.32 2005/09/17 20:57:19 rocky Exp $
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org> Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -100,17 +100,17 @@ extern "C" {
# endif # endif
#endif #endif
#if defined(HAVE_STDBOOL_H) #ifndef __cplusplus
#include <stdbool.h> # if defined(HAVE_STDBOOL_H)
#else # include <stdbool.h>
/* ISO/IEC 9899:1999 <stdbool.h> missing -- enabling workaround */ # else
/* ISO/IEC 9899:1999 <stdbool.h> missing -- enabling workaround */
# ifndef __cplusplus # define false 0
# define false 0 # define true 1
# define true 1 # define bool uint8_t
# define bool uint8_t # endif /*HAVE_STDBOOL_H*/
# endif #endif /*C++*/
#endif
/* some GCC optimizations -- gcc 2.5+ */ /* some GCC optimizations -- gcc 2.5+ */

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.4 2005/02/05 16:25:51 rocky Exp $ # $Id: Makefile.am,v 1.5 2005/09/17 20:57:19 rocky Exp $
# #
# Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com> # Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
# #
@@ -44,7 +44,7 @@
# incompatibility with previous versions. # incompatibility with previous versions.
libcdio_cdda_la_CURRENT := 0 libcdio_cdda_la_CURRENT := 0
libcdio_cdda_la_REVISION := 0 libcdio_cdda_la_REVISION := 1
libcdio_cdda_la_AGE := 0 libcdio_cdda_la_AGE := 0
noinst_HEADERS = common_interface.h drive_exceptions.h low_interface.h \ noinst_HEADERS = common_interface.h drive_exceptions.h low_interface.h \

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.12 2005/07/07 06:54:48 rocky Exp $ # $Id: Makefile.am,v 1.13 2005/09/17 20:57:19 rocky Exp $
# #
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com> # Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
# #
@@ -43,7 +43,7 @@
# incompatibility with previous versions. # incompatibility with previous versions.
libcdio_la_CURRENT := 6 libcdio_la_CURRENT := 6
libcdio_la_REVISION := 0 libcdio_la_REVISION := 1
libcdio_la_AGE := 0 libcdio_la_AGE := 0
EXTRA_DIST = image/Makefile FreeBSD/Makefile MSWindows/Makefile \ EXTRA_DIST = image/Makefile FreeBSD/Makefile MSWindows/Makefile \

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.7 2005/09/15 06:36:01 rocky Exp $ # $Id: Makefile.am,v 1.8 2005/09/17 20:57:19 rocky Exp $
# #
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com> # Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
# #
@@ -43,7 +43,7 @@
# incompatibility with previous versions. # incompatibility with previous versions.
libiso9660_la_CURRENT := 4 libiso9660_la_CURRENT := 4
libiso9660_la_REVISION := 0 libiso9660_la_REVISION := 1
libiso9660_la_AGE := 0 libiso9660_la_AGE := 0
EXTRA_DIST = libiso9660.sym EXTRA_DIST = libiso9660.sym