18#ifndef __VSF_SDL2_VERSION_H__
19#define __VSF_SDL2_VERSION_H__
23#include "../../vsf_sdl2_cfg.h"
25#if VSF_USE_SDL2 == ENABLED
37#define SDL_MAJOR_VERSION 2
38#define SDL_MINOR_VERSION 0
39#define SDL_PATCHLEVEL 7
41#define SDL_VERSIONNUM(__X, __Y, __Z) ((__X) * 1000 + (__Y) * 100 + (__Z))
42#define SDL_COMPILEDVERSION \
43 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
44#define SDL_VERSION_ATLEAST(__X, __Y, __Z) \
45 (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(__X, __Y, __Z))
47#define SDL_VERSION(x) \
49 (x)->major = SDL_MAJOR_VERSION; \
50 (x)->minor = SDL_MINOR_VERSION; \
51 (x)->patch = SDL_PATCHLEVEL; \
56#if VSF_SDL_CFG_WRAPPER == ENABLED
57#define SDL_Linked_Version VSF_SDL_WRAPPER(SDL_Linked_Version)
58#define SDL_GetVersion VSF_SDL_WRAPPER(SDL_GetVersion)
#define SDL_GetVersion
Definition SDL_version.h:58
#define SDL_Linked_Version
Definition SDL_version.h:57
unsigned char uint8_t
Definition lvgl.h:40
Definition SDL_version.h:64
uint8_t patch
Definition SDL_version.h:67
uint8_t minor
Definition SDL_version.h:66
uint8_t major
Definition SDL_version.h:65