mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 13:10:47 +00:00
Check for _MSC_VER definition first
Forgot the need to check for the presence of _MSC_VER definition before it can be compared against the value for VC 2015.
This commit is contained in:
parent
c4c2eaa257
commit
a88e777e05
@ -801,11 +801,15 @@ struct GPU_Renderer
|
||||
// Setup calls
|
||||
|
||||
// static inline only supported in Visual C++ from version 2015 but can use static __inline instead for older versions
|
||||
#ifdef _MSC_VER
|
||||
#if _MSC_VER < 1900
|
||||
static __inline SDL_version GPU_GetCompiledVersion(void)
|
||||
#else
|
||||
static inline SDL_version GPU_GetCompiledVersion(void)
|
||||
#endif
|
||||
#else
|
||||
static inline SDL_version GPU_GetCompiledVersion(void)
|
||||
#endif
|
||||
{
|
||||
SDL_version v = {SDL_GPU_VERSION_MAJOR, SDL_GPU_VERSION_MINOR, SDL_GPU_VERSION_PATCH};
|
||||
return v;
|
||||
|
Loading…
x
Reference in New Issue
Block a user