Skip to content

Commit

Permalink
updated PECL package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadis Kakanejadi Fard committed Mar 7, 2017
1 parent cbafb6e commit 91f27c0
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions source/shared/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,25 @@
#define SQLVERSION_PATCH 7
#define SQLVERSION_BUILD 0

// Semantic versioning pre-release and buil metadata
#define SEMVER_PRERELEASE "-preview"
// Semantic versioning pre-release, for stable releases should be empty
#define SEMVER_PRERELEASE "preview"
// Semantic versioning build metadata
#define SEMVER_BUILDMETA

#if SQLVERSION_BUILD > 0
#undef SEMVER_BUILDMETA
#define SEMVER_BUILDMETA "+" STRINGIFY( SQLVERSION_BUILD )
#endif

#define VER_FILEVERSION_STR STRINGIFY( SQLVERSION_MAJOR ) "." STRINGIFY( SQLVERSION_MINOR ) "." STRINGIFY( SQLVERSION_PATCH ) SEMVER_PRERELEASE SEMVER_BUILDMETA
// Main version
#define VER_APIVERSION_STR STRINGIFY( SQLVERSION_MAJOR ) "." STRINGIFY( SQLVERSION_MINOR ) "." STRINGIFY( SQLVERSION_PATCH )

// Remove "-" if SEMVER_PRERELEASE is empty (for stable releases)
#define VER_FILEVERSION_STR VER_APIVERSION_STR "-" SEMVER_PRERELEASE SEMVER_BUILDMETA
#define _FILEVERSION SQLVERSION_MAJOR,SQLVERSION_MINOR,SQLVERSION_PATCH,SQLVERSION_BUILD

//PECL extension verison macros
#define PHP_SQLSRV_VERSION VER_FILEVERSION_STR
#define PHP_PDO_SQLSRV_VERSION VER_FILEVERSION_STR
// PECL package version macros (can't have '-' or '+')
#define PHP_SQLSRV_VERSION VER_APIVERSION_STR SEMVER_PRERELEASE
#define PHP_PDO_SQLSRV_VERSION PHP_SQLSRV_VERSION

#endif // VERSION_H


0 comments on commit 91f27c0

Please sign in to comment.