SDL: begin_code: Solaris Studio has `__has_attribute` defined by isn't usable here.

From d96f1d5360be6dd5f57c3f100deb80c7f39da2a5 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 27 Jun 2024 20:38:45 -0400
Subject: [PATCH] begin_code: Solaris Studio has `__has_attribute` defined by
 isn't usable here.

Fixes #10095.
---
 include/begin_code.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/begin_code.h b/include/begin_code.h
index 51f7b2640387e..a9c88be3e5471 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -172,7 +172,7 @@
     (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L)
 #define SDL_FALLTHROUGH [[fallthrough]]
 #else
-#if defined(__has_attribute)
+#if defined(__has_attribute) && !defined(__SUNPRO_C) && !defined(__SUNPRO_CC)
 #define SDL_HAS_FALLTHROUGH __has_attribute(__fallthrough__)
 #else
 #define SDL_HAS_FALLTHROUGH 0