Trying to compile v0.16.1 on Mac OS X 10.6.8, I see: Making all in . CC compat.lo In file included from compat.c:37: ./compat.h:252:16: error: expected '}' typedef enum { false, true } bool; ^ /usr/bin/../lib/clang/3.0/include/stdbool.h:33:15: note: instantiated from: #define false 0 ^ ./compat.h:252:14: note: to match this '{' typedef enum { false, true } bool; ^ ./compat.h:252:30: error: cannot combine with previous 'enum' declaration specifier typedef enum { false, true } bool; ^ /usr/bin/../lib/clang/3.0/include/stdbool.h:31:14: note: instantiated from: #define bool _Bool ^ In file included from compat.c:37: ./compat.h:252:1: warning: typedef requires a name [-Wmissing-declarations] typedef enum { false, true } bool; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 2 errors generated. So it appears that HAVE_STDBOOL_H is not being defined appropriately; I get identical errors using gcc instead of clang. (clang has an internal stdbool.h but there is also a stdbool.h in /usr/include).
Created attachment 76146 [details] [review] Properly detect the stdbool.h header
Could you test the attach patch and see if it solves the problem? If not, could you produce a patch which does? I don't have access to a Mac OS X machine currently, although I'm willing to accommodate proprietary OS's if a patch is provided.
It does, thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.