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