1
0
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:
Bruce Momjian
2006-02-28 16:41:21 +00:00
parent d2c555ee53
commit 03024ca5a1
3 changed files with 18 additions and 3 deletions

8
configure vendored
View File

@ -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