projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vulkan/utils: s/VERSION/PACKAGE_VERSION/
[mesa.git]
/
src
/
vulkan
/
util
/
vk_util.c
diff --git
a/src/vulkan/util/vk_util.c
b/src/vulkan/util/vk_util.c
index ec95a89078ad702f3754930119ea8a6567d2f5c5..cf06b1f44c4b1fc79a8b246f0d04af2b38a0362a 100644
(file)
--- a/
src/vulkan/util/vk_util.c
+++ b/
src/vulkan/util/vk_util.c
@@
-29,12
+29,12
@@
uint32_t vk_get_driver_version(void)
{
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;
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;
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) {
if (patch == 0) {
patch = 99;
if (minor == 0) {