From 83a88c8147db8bfeafa38a4b609d2ea4961b6fe2 Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@gmail.com>
Date: Mon, 18 Nov 2024 13:48:46 +1300
Subject: [PATCH 2/2] Remove obsolete macOS/PPC workaround.

macOS/PPC, a paltform that ended with macOS 10.5 in 2009, was the last
known system where we didn't define PG_USE_STDBOOL.  Defenses installed
by commit ff47d4bf aren't needed on modern systems and won't even make
sense when the C standard rolls forward and bool isn't a macro.
---
 src/backend/utils/fmgr/dfmgr.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c
index c7aa789b51b..8e81ecc7491 100644
--- a/src/backend/utils/fmgr/dfmgr.c
+++ b/src/backend/utils/fmgr/dfmgr.c
@@ -18,16 +18,6 @@
 
 #ifndef WIN32
 #include <dlfcn.h>
-
-/*
- * On macOS, <dlfcn.h> insists on including <stdbool.h>.  If we're not
- * using stdbool, undef bool to undo the damage.
- */
-#ifndef PG_USE_STDBOOL
-#ifdef bool
-#undef bool
-#endif
-#endif
 #endif							/* !WIN32 */
 
 #include "fmgr.h"
-- 
2.47.0

