vulkan/utils: s/VERSION/PACKAGE_VERSION/

Everything else uses PACKAGE_VERSION, so let's be consistent, and
VERSION and PACKAGE_VERSION are currently defined to be the same in
meson and android, while VERSION is undefined in autotools and scons.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Eric Engestrom
2018-11-23 15:13:02 +00:00
parent 56d126f8fd
commit bd12e02530
+3 -3
View File
@@ -29,12 +29,12 @@
uint32_t vk_get_driver_version(void)
{
const char *minor_string = strchr(VERSION, '.');
const char *minor_string = strchr(PACKAGE_VERSION, '.');
const char *patch_string = minor_string ? strchr(minor_string + 1, '.') : NULL;
int major = atoi(VERSION);
int major = atoi(PACKAGE_VERSION);
int minor = minor_string ? atoi(minor_string + 1) : 0;
int patch = patch_string ? atoi(patch_string + 1) : 0;
if (strstr(VERSION, "devel")) {
if (strstr(PACKAGE_VERSION, "devel")) {
if (patch == 0) {
patch = 99;
if (minor == 0) {