mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-12 22:38:13 +00:00
begin_code: Solaris Studio has __has_attribute
defined by isn't usable here.
Fixes #10095.
This commit is contained in:
@@ -172,7 +172,7 @@
|
|||||||
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L)
|
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L)
|
||||||
#define SDL_FALLTHROUGH [[fallthrough]]
|
#define SDL_FALLTHROUGH [[fallthrough]]
|
||||||
#else
|
#else
|
||||||
#if defined(__has_attribute)
|
#if defined(__has_attribute) && !defined(__SUNPRO_C) && !defined(__SUNPRO_CC)
|
||||||
#define SDL_HAS_FALLTHROUGH __has_attribute(__fallthrough__)
|
#define SDL_HAS_FALLTHROUGH __has_attribute(__fallthrough__)
|
||||||
#else
|
#else
|
||||||
#define SDL_HAS_FALLTHROUGH 0
|
#define SDL_HAS_FALLTHROUGH 0
|
||||||
|
Reference in New Issue
Block a user