summaryrefslogtreecommitdiff
path: root/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/iscan/files/iscan-2.30.4.2-c99.patch')
-rw-r--r--media-gfx/iscan/files/iscan-2.30.4.2-c99.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch b/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch
new file mode 100644
index 000000000000..93683c2887b4
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch
@@ -0,0 +1,24 @@
+--- a/backend/defines.h 2021-01-04 08:13:48.995137756 -0000
++++ b/backend/defines.h 2021-01-04 08:16:00.524563361 -0000
+@@ -31,6 +31,13 @@
+
+
+ #ifndef __cplusplus
++
++/* Use the C99 bool type if available
++ */
++#ifdef HAVE_STDBOOL_H
++#include <stdbool.h>
++#else
++
+ /*! A C++ Boolean type and corresponding keywords for our C code.
+ */
+ typedef enum {
+@@ -38,6 +45,7 @@
+ true
+ } bool;
+ #endif
++#endif
+
+
+ /* Run-time contract validation.