Skip to content

Commit

Permalink
Add support for PostgreSQL 13
Browse files Browse the repository at this point in the history
USE_FLOAT8_BYVAL is no longer in pg_config.h, so now we also look for
SIZEOF_VOID_P as an alternative.
  • Loading branch information
petere committed Jul 2, 2020
1 parent 8f29f2e commit e5f325b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export PGOPTIONS = -c enable_indexonlyscan=off
endif

pg_config_h := $(shell $(PG_CONFIG) --includedir-server)/pg_config.h
use_float8_byval := $(shell grep -q 'USE_FLOAT8_BYVAL 1' $(pg_config_h) && echo yes)
use_float8_byval := $(shell if grep -q 'USE_FLOAT8_BYVAL 1' $(pg_config_h) || grep -q 'SIZEOF_VOID_P 8' $(pg_config_h); then echo yes; fi)
comma = ,

extension_version = 0
Expand Down

0 comments on commit e5f325b

Please sign in to comment.