mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Fix cpluspluscheck for "Change gist stratnum function to use CompareType"
Commit 630f9a43ce introduced an enum forward declaration, which
doesn't work in C++. To fix, just include the header file to get the
type.
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
#include "access/transam.h"
|
#include "access/transam.h"
|
||||||
#include "access/xlog.h"
|
#include "access/xlog.h"
|
||||||
#include "access/xlogdefs.h"
|
#include "access/xlogdefs.h"
|
||||||
|
#include "nodes/primnodes.h"
|
||||||
#include "storage/block.h"
|
#include "storage/block.h"
|
||||||
#include "storage/bufpage.h"
|
#include "storage/bufpage.h"
|
||||||
#include "utils/relcache.h"
|
#include "utils/relcache.h"
|
||||||
@@ -247,7 +248,6 @@ typedef struct
|
|||||||
do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
|
do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
|
||||||
(e).offset = (o); (e).leafkey = (l); } while (0)
|
(e).offset = (o); (e).leafkey = (l); } while (0)
|
||||||
|
|
||||||
enum CompareType;
|
extern StrategyNumber GistTranslateStratnum(Oid opclass, CompareType cmp);
|
||||||
extern StrategyNumber GistTranslateStratnum(Oid opclass, enum CompareType cmp);
|
|
||||||
|
|
||||||
#endif /* GIST_H */
|
#endif /* GIST_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user