Fix bug when including <id3.h> after <stdbool.h>
[hvgrip.git] / 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