Path: blob/master/thirdparty/sdl/include/SDL3/SDL_revision.h
9912 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021/* WIKI CATEGORY: Version */2223/*24* SDL_revision.h contains the SDL revision, which might be defined on the25* compiler command line, or generated right into the header itself by the26* build system.27*/2829#ifndef SDL_revision_h_30#define SDL_revision_h_3132#ifdef SDL_WIKI_DOCUMENTATION_SECTION3334/**35* This macro is a string describing the source at a particular point in36* development.37*38* This string is often generated from revision control's state at build time.39*40* This string can be quite complex and does not follow any standard. For41* example, it might be something like "SDL-prerelease-3.1.1-47-gf687e0732".42* It might also be user-defined at build time, so it's best to treat it as a43* clue in debugging forensics and not something the app will parse in any44* way.45*46* \since This macro is available since SDL 3.2.0.47*/48#define SDL_REVISION "Some arbitrary string decided at SDL build time"49#elif defined(SDL_VENDOR_INFO)50#define SDL_REVISION SDL_VENDOR_INFO51#else52#define SDL_REVISION ""53#endif5455#endif /* SDL_revision_h_ */565758