diff options
Diffstat (limited to 'libpq/libpq/version.h.in')
-rw-r--r-- | libpq/libpq/version.h.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libpq/libpq/version.h.in b/libpq/libpq/version.h.in new file mode 100644 index 0000000..0dec491 --- /dev/null +++ b/libpq/libpq/version.h.in @@ -0,0 +1,17 @@ +/* file : libpq/version.h.in -*- C -*- + * copyright : Copyright (c) 2016-2019 Code Synthesis Ltd + * license : PostgreSQL License; see accompanying COPYRIGHT file + */ + +#ifndef PG_MAJORVERSION /* Note: using the version macro itself. */ + +#define PG_VERSION "$libpq.version.major$.$libpq.version.minor$" + +/* + * For example, 120001 for 12.1. + */ +#define PG_VERSION_NUM (10000 * $libpq.version.major$ + $libpq.version.minor$) + +#define PG_MAJORVERSION "$libpq.version.major$" + +#endif /* PG_MAJORVERSION */ |