From 44ae21d383ae9c2a6c46bfd3141f45dfe4f86e53 Mon Sep 17 00:00:00 2001 From: L zard Date: Sat, 2 Nov 2024 21:31:43 +0100 Subject: [PATCH] SDL_revision: make sure `SDL_REVISION` and `SDL_VENDOR_INFO` are defined ...and that `SDL_VENDOR_INFO` is included in `SDL_REVISION`. --- include/build_config/SDL_revision.h.cmake | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/include/build_config/SDL_revision.h.cmake b/include/build_config/SDL_revision.h.cmake index d002306f2b159e..f408b05cca356f 100644 --- a/include/build_config/SDL_revision.h.cmake +++ b/include/build_config/SDL_revision.h.cmake @@ -31,9 +31,21 @@ #cmakedefine SDL_VENDOR_INFO "@SDL_VENDOR_INFO@" #ifdef SDL_VENDOR_INFO -#define SDL_REVISION "@SDL_REVISION@ (" SDL_VENDOR_INFO ")" +#cmakedefine SDL_REVISION "@SDL_REVISION@ (" SDL_VENDOR_INFO ")" #else -#define SDL_REVISION "@SDL_REVISION@" +#cmakedefine SDL_REVISION "@SDL_REVISION@" +#endif + +#ifndef SDL_REVISION +#ifdef SDL_VENDOR_INFO +#define SDL_REVISION SDL_VENDOR_INFO +#else +#define SDL_REVISION "" +#endif +#endif + +#ifndef SDL_VENDOR_INFO +#define SDL_VENDOR_INFO "" #endif #endif /* SDL_revision_h_ */