Hi,
I'm maintaining the `geany-plugins` pacakge for Arch Linux.
When compiling the latest version of geany-plugins, I get this error:
``` PrettyPrinter.h:55:22: error: two or more data types in declaration specifiers 55 | typedef unsigned int bool; | ^~~~ ```
Including `<stdbool.h>` and removing the typdef for `bool` solves this issue.
Tested on GCC 10.2.0.
Thanks for creating and maintaining Geany and Geany Plugins! They are both pretty sweet and usually unproblematic to package. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1053
-- Commit Summary --
* Use stdbool.h istead of redefining bool
-- File Changes --
M pretty-printer/src/PrettyPrinter.h (5)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1053.patch https://github.com/geany/geany-plugins/pull/1053.diff
Seems reasonable to me, `stdbool.h` is a C99 header and `HACKING` says use C99, although I am curious what just changed that made it suddenly not compile?
@b4n what say you oh ancient C guru?
I believe this is a dupe of #1023
Merged #1053 into master.
github-comments@lists.geany.org