projects
/
hvgrip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5b984
)
Fix bug when including <id3.h> after <stdbool.h>
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 26 Mar 2014 04:13:16 +0000
(
00:13
-0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 26 Mar 2014 22:53:53 +0000
(18:53 -0400)
id3lib, in a very stupid way, has a public bool typedef.
This creates a compilation error if we are including <stdbool.h>.
src/id3.c
patch
|
blob
|
history
diff --git
a/src/id3.c
b/src/id3.c
index
cd38528
..
4b46b96
100644
(file)
--- a/
src/id3.c
+++ b/
src/id3.c
@@
-219,6
+219,11
@@
typedef struct _id3_tag {
#ifdef HAVE_ID3V2
+/*
+ * id3lib, in a very stupid way, has a public bool typedef.
+ * This creates a compilation error if we are including <stdbool.h>
+ */
+#undef bool
#include <id3.h>
/* Things you might want to mess with. Surprisingly, the code will probably