summaryrefslogtreecommitdiff
path: root/media-gfx/iscan/files/iscan-2.30.4.2-c99.patch
blob: 93683c2887b4f12366fd4183dd84d2f9df65cdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.