aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/gist.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-01-15 23:11:08 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-01-15 23:11:08 +0100
commitd5221c49a302ee7f3964449cbc730b01ce4e7d40 (patch)
treebccdb4c18e47f306017eb618033bf6682139f98a /src/include/access/gist.h
parent3edc67d337c2e498dad1cd200e460f7c63e512e6 (diff)
downloadpostgresql-d5221c49a302ee7f3964449cbc730b01ce4e7d40.tar.gz
postgresql-d5221c49a302ee7f3964449cbc730b01ce4e7d40.zip
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.
Diffstat (limited to 'src/include/access/gist.h')
-rw-r--r--src/include/access/gist.h4
1 files changed, 2 insertions, 2 deletions
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 */