[id3lib-devel] patch for c99 bool
Brought to you by:
t1mpy
From: Matt D. <ma...@de...> - 2013-02-18 18:08:23
|
Any chance of getting in an update that makes id3lib a little more c99 friendly? I'm using id3lib in a Cocoa project on OS X, and the foundation library includes stdbool.h which typedefs bool and defines true and false. I've appended a condition to define bool in the absence of __bool_true_false_are_defined, which is defined in stdbool.h: Index: include/id3/globals.h =================================================================== RCS file: /cvsroot/id3lib/id3lib-devel/include/id3/globals.h,v retrieving revision 1.56 diff -r1.56 globals.h 113c113 < #ifndef __cplusplus --- > #if !defined(__cplusplus) && !defined(__bool_true_false_are_defined) 119c119 < #endif /* __cplusplus */ --- > #endif /* __cplusplus __bool_true_false_are_defined */ MD |