Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee455b0

Browse files
committed
Place include utils/float.h under ifdef
1 parent 9c0b9ad commit ee455b0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ DATA = vops--1.0.sql
1313

1414
REGRESS = test
1515

16+
PG_CPPFLAGS = -I$(libpq_srcdir)
17+
PG_LIBS = $(libpq_pgport)
18+
1619
ifdef USE_PGXS
1720
PG_CONFIG = pg_config
1821
PGXS := $(shell $(PG_CONFIG) --pgxs)

vops.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#include "utils/array.h"
2828
#include "utils/tqual.h"
2929
#include "utils/datum.h"
30+
#if PG_VERSION_NUM>=120000
3031
#include "utils/float.h"
32+
#endif
3133
#include "utils/builtins.h"
3234
#include "utils/datetime.h"
3335
#include <utils/typcache.h>

0 commit comments

Comments
 (0)