sqldefines.h 1.17 KB
Newer Older
1 2 3
#ifndef _LWPGIS_DEFINES
#define _LWPGIS_DEFINES

4 5
#include "../postgis_svn_revision.h"

6 7 8
/*
 * Define just the version numbers; otherwise we get some strange substitutions in postgis.sql.in
 */
9 10
#define POSTGIS_PGSQL_VERSION 95
#define POSTGIS_GEOS_VERSION 35
11
#define POSTGIS_PROJ_VERSION 49
12 13 14 15 16 17 18 19 20
#define POSTGIS_LIB_VERSION '2.3.0beta1'
#define POSTGIS_LIBXML2_VERSION 2.9.4
#define POSTGIS_SFCGAL_VERSION 13

#if POSTGIS_PGSQL_VERSION >= 96
#define _PARALLEL PARALLEL SAFE
#else
#define _PARALLEL
#endif
21 22 23 24 25 26

/*
 * Define the build date and the version number
 * (these substitiutions are done with extra quotes sinces CPP
 * won't substitute within apostrophes)
 */
27 28
#define _POSTGIS_SQL_SELECT_POSTGIS_VERSION 'SELECT ''2.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1''::text AS version'
#define _POSTGIS_SQL_SELECT_POSTGIS_BUILD_DATE 'SELECT ''2016-09-06 06:24:58''::text AS version'
29 30

#if POSTGIS_SVN_REVISION
31
#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT '2.3.0beta1'::text || ' r' || POSTGIS_SVN_REVISION::text AS version $$
32
#else
33
#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT '2.3.0beta1'::text AS version $$
34 35 36
#endif

#define SRID_USR_MAX 998999
37 38

#endif /* _LWPGIS_DEFINES */
39 40