From 5ee2ad51dc407d8eede8fb492692c0a555c64bf9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 18 Nov 2021 03:33:00 +0300
Subject: [PATCH] SDL_endian.h: sync with SDL2
---
include/SDL/SDL_endian.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL/SDL_endian.h b/include/SDL/SDL_endian.h
index 7fc0f1f..09ccb14 100644
--- a/include/SDL/SDL_endian.h
+++ b/include/SDL/SDL_endian.h
@@ -69,7 +69,7 @@ real SDL-1.2 available to you. */
#define _SDL_HAS_BUILTIN(x) 0
#endif
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
# define HAS_BUILTIN_BSWAP16 (_SDL_HAS_BUILTIN(__builtin_bswap16)) || \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
# define HAS_BUILTIN_BSWAP32 (_SDL_HAS_BUILTIN(__builtin_bswap32)) || \