From 692501f49a1b2b535b76f31cd914f76c49197184 Mon Sep 17 00:00:00 2001 From: Raffaello Bertini Date: Sat, 11 Nov 2023 13:09:22 +0000 Subject: [PATCH] update version macro name --- .../src/HyperSonicDrivers/utils/constants.cpp | 8 ++++---- sdl2-hyper-sonic-drivers/version.h.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/utils/constants.cpp b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/utils/constants.cpp index 92efbf0a..1f5b692a 100644 --- a/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/utils/constants.cpp +++ b/sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/utils/constants.cpp @@ -5,18 +5,18 @@ namespace HyperSonicDrivers::utils { const char* getVersion() { - return __SONIC_DRIVERS_VERSION; + return __HYPER_SONIC_DRIVERS_VERSION; } int getVersionMajor() { - return __SONIC_DRIVERS_VERSION_MAJOR; + return __HYPER_SONIC_DRIVERS_VERSION_MAJOR; } int getVersionMinor() { - return __SONIC_DRIVERS_VERSION_MINOR; + return __HYPER_SONIC_DRIVERS_VERSION_MINOR; } int getVersionPatch() { - return __SONIC_DRIVERS_VERSION_PATCH; + return __HYPER_SONIC_DRIVERS_VERSION_PATCH; } } diff --git a/sdl2-hyper-sonic-drivers/version.h.in b/sdl2-hyper-sonic-drivers/version.h.in index 0290b8b6..9f9d4bb0 100644 --- a/sdl2-hyper-sonic-drivers/version.h.in +++ b/sdl2-hyper-sonic-drivers/version.h.in @@ -1,9 +1,9 @@ #ifndef __VERSION_H__ #define __VERSION_H__ -#define __SONIC_DRIVERS_VERSION "${CMAKE_PROJECT_VERSION}" -#define __SONIC_DRIVERS_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR} -#define __SONIC_DRIVERS_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR} -#define __SONIC_DRIVERS_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH} +#define __HYPER_SONIC_DRIVERS_VERSION "${CMAKE_PROJECT_VERSION}" +#define __HYPER_SONIC_DRIVERS_VERSION_MAJOR ${CMAKE_PROJECT_VERSION_MAJOR} +#define __HYPER_SONIC_DRIVERS_VERSION_MINOR ${CMAKE_PROJECT_VERSION_MINOR} +#define __HYPER_SONIC_DRIVERS_VERSION_PATCH ${CMAKE_PROJECT_VERSION_PATCH} #endif