From 87d8e066bcbec5cbb794faa0ec9f37f96c7b5253 Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Thu, 9 Jan 2025 16:32:21 -0800 Subject: [PATCH] cpl_error.h: Move the include of stdbool for CPLErrorOnce into the header. (#11625) Callers of things in cpl_error.h should not have to be aware of internally required includes. --- frmts/aigrid/gridlib.c | 2 -- port/cpl_error.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frmts/aigrid/gridlib.c b/frmts/aigrid/gridlib.c index ac4423c82536..330cda968320 100644 --- a/frmts/aigrid/gridlib.c +++ b/frmts/aigrid/gridlib.c @@ -13,8 +13,6 @@ #include "aigrid.h" -#include - #ifndef CPL_IGNORE_RET_VAL_INT_defined #define CPL_IGNORE_RET_VAL_INT_defined diff --git a/port/cpl_error.h b/port/cpl_error.h index a4d8fcd0a862..63eaa6f3c37b 100644 --- a/port/cpl_error.h +++ b/port/cpl_error.h @@ -17,6 +17,7 @@ #include "cpl_port.h" #include +#include #include /*=====================================================================