SDL_revision.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. /* WIKI CATEGORY: Version */
  19. /*
  20. * SDL_revision.h contains the SDL revision, which might be defined on the
  21. * compiler command line, or generated right into the header itself by the
  22. * build system.
  23. */
  24. #ifndef SDL_revision_h_
  25. #define SDL_revision_h_
  26. #ifdef SDL_WIKI_DOCUMENTATION_SECTION
  27. /**
  28. * This macro is a string describing the source at a particular point in
  29. * development.
  30. *
  31. * This string is often generated from revision control's state at build time.
  32. *
  33. * This string can be quite complex and does not follow any standard. For
  34. * example, it might be something like "SDL-prerelease-3.1.1-47-gf687e0732".
  35. * It might also be user-defined at build time, so it's best to treat it as a
  36. * clue in debugging forensics and not something the app will parse in any
  37. * way.
  38. *
  39. * \since This macro is available since SDL 3.1.3.
  40. */
  41. #define SDL_REVISION "Some arbitrary string decided at SDL build time"
  42. #elif defined(SDL_VENDOR_INFO)
  43. #define SDL_REVISION SDL_VENDOR_INFO
  44. #else
  45. #define SDL_REVISION ""
  46. #endif
  47. #endif /* SDL_revision_h_ */