mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add PG_VERSION_NUM for use by 3rd party applications wanting to test the
backend version in C using > and < comparisons.
This commit is contained in:
8
configure
vendored
8
configure
vendored
@ -4742,6 +4742,14 @@ fi
|
||||
|
||||
fi
|
||||
|
||||
# Supply a numeric version string for use by 3rd party add-ons
|
||||
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
|
||||
$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PG_VERSION_NUM $PG_VERSION_NUM
|
||||
_ACEOF
|
||||
|
||||
|
||||
##
|
||||
## Libraries
|
||||
|
Reference in New Issue
Block a user