freebsd-ports/databases/grass7/files/patch-include_gis.h
Loïc Bartoletti 562f7a0402 databases/grass7: unbreak after gdal 3.3 update
GDAL 3.3.0 introduces the use of standard C bool type.
Redefining bool locally, as in vector/v.hull/chull.c causes failure.

Obtained from:	https://github.com/OSGeo/grass/pull/1567
2021-07-04 18:11:31 +02:00

24 lines
551 B
C

--- include/gis.h.orig 2021-07-04 15:25:28 UTC
+++ include/gis.h
@@ -23,6 +23,7 @@
/* System include files */
#include <stdio.h>
#include <stdarg.h>
+#include <stdbool.h>
/* Grass and local include files */
#include <grass/config.h>
@@ -53,11 +54,11 @@ static const char *GRASS_copyright __attribute__ ((unu
/* Define TRUE and FALSE for boolean comparisons */
#ifndef TRUE
-#define TRUE 1
+#define TRUE true
#endif
#ifndef FALSE
-#define FALSE 0
+#define FALSE false
#endif
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64