Skip to content

Commit

Permalink
SDL_revision: make sure SDL_REVISION and SDL_VENDOR_INFO are defined
Browse files Browse the repository at this point in the history
...and that `SDL_VENDOR_INFO` is included in `SDL_REVISION`.
  • Loading branch information
Lzard committed Nov 2, 2024
1 parent ab8137e commit 44ae21d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions include/build_config/SDL_revision.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 44ae21d

Please sign in to comment.