[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-devel] Two bugs in libcdio
From: |
Tim Potter |
Subject: |
[Libcdio-devel] Two bugs in libcdio |
Date: |
Fri, 18 Mar 2005 10:28:44 +1100 |
Hello. I'm using the libcdio library for command line access to data
inside a ISO file. I've run in to a couple of bugs though in the CVS
version downloaded a couple of days ago.
The code included when stdbool.h is not found is broken. It #define's a
bool to be an enum which, under gcc 3, is four bytes long. This totally
screws up the parsing of directory entries which presumably do something
like ndx +=3D sizeof(bool) somewhere. Here's a patch:
Also, I'm not convinced that having types.h depend on autoconf variables
is such a good idea. As an external user of the library (i.e only files
installed in /usr/local/lib and /usr/local/include) all the
"workarounds" are activated since I didn't add the various HAVE_FOO_H
defines to my command line. This is how I discovered the bool/enum
problem.
Regards,
Tim.
cdio-types.h.patch
Description: Text Data
- [Libcdio-devel] Two bugs in libcdio,
Tim Potter <=