From d99093fb4bb5652015c06274d64083daa2439e4f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Mar 2021 10:28:17 +0000 Subject: gentoo resync : 03.03.2021 --- .../files/geany-plugins-1.37_use-stdbool.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dev-util/geany-plugins/files/geany-plugins-1.37_use-stdbool.patch (limited to 'dev-util/geany-plugins/files') diff --git a/dev-util/geany-plugins/files/geany-plugins-1.37_use-stdbool.patch b/dev-util/geany-plugins/files/geany-plugins-1.37_use-stdbool.patch new file mode 100644 index 000000000000..e4f3990c0015 --- /dev/null +++ b/dev-util/geany-plugins/files/geany-plugins-1.37_use-stdbool.patch @@ -0,0 +1,39 @@ +From ad50d3ed2ddfe11cd07954786b96725602fb4ddd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alexander=20F=2E=20R=C3=B8dseth?= +Date: Tue, 5 Jan 2021 12:57:27 +0100 +Subject: [PATCH] Use stdbool.h istead of redefining bool + +Redefining bool causes errors when used together with ie. GCC 10.2.0 +--- + pretty-printer/src/PrettyPrinter.h | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/pretty-printer/src/PrettyPrinter.h b/pretty-printer/src/PrettyPrinter.h +index 268986e95..4200db612 100644 +--- a/pretty-printer/src/PrettyPrinter.h ++++ b/pretty-printer/src/PrettyPrinter.h +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + #ifdef HAVE_GLIB + #include +@@ -52,15 +53,13 @@ + #define TRUE !(FALSE) + #endif + +-typedef unsigned int bool; +- + /*========================================== STRUCTURES =======================================================*/ + + /** + * The PrettyPrintingOptions struct allows the programmer to tell the + * PrettyPrinter how it must format the XML output. + */ +-typedef struct ++typedef struct + { + const char* newLineChars; /* char used to generate a new line (generally \r\n) */ + char indentChar; /* char used for indentation */ -- cgit v1.2.3