Skip to content

Commit

Permalink
4D_api: Use pg_get_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Jul 24, 2023
1 parent 6320f57 commit aff3250
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/4D_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,6 @@ static char *path_append(char *buf, const char *app, size_t *buf_size) {
}

static const char *empty = {""};
static char version[64] = {""};
static PJ_INFO info = {0, 0, 0, nullptr, nullptr, nullptr, nullptr, 0};

/*****************************************************************************/
Expand All @@ -2565,12 +2564,7 @@ PJ_INFO proj_info(void) {
info.minor = PROJ_VERSION_MINOR;
info.patch = PROJ_VERSION_PATCH;

/* A normal version string is xx.yy.zz which is 8 characters
long and there is room for 64 bytes in the version string. */
snprintf(version, sizeof(version), "%d.%d.%d", info.major, info.minor,
info.patch);

info.version = version;
info.version = pj_get_version();
info.release = pj_get_release();

/* build search path string */
Expand Down

0 comments on commit aff3250

Please sign in to comment.