From d5221c49a302ee7f3964449cbc730b01ce4e7d40 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 15 Jan 2025 23:11:08 +0100 Subject: Fix cpluspluscheck for "Change gist stratnum function to use CompareType" Commit 630f9a43cec introduced an enum forward declaration, which doesn't work in C++. To fix, just include the header file to get the type. --- src/include/access/gist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/access/gist.h') diff --git a/src/include/access/gist.h b/src/include/access/gist.h index 446871263f6..2f419a3b309 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -21,6 +21,7 @@ #include "access/transam.h" #include "access/xlog.h" #include "access/xlogdefs.h" +#include "nodes/primnodes.h" #include "storage/block.h" #include "storage/bufpage.h" #include "utils/relcache.h" @@ -247,7 +248,6 @@ typedef struct do { (e).key = (k); (e).rel = (r); (e).page = (pg); \ (e).offset = (o); (e).leafkey = (l); } while (0) -enum CompareType; -extern StrategyNumber GistTranslateStratnum(Oid opclass, enum CompareType cmp); +extern StrategyNumber GistTranslateStratnum(Oid opclass, CompareType cmp); #endif /* GIST_H */ -- cgit v1.2.3