Fix compatibility with GCC versions that lack __has_builtin()

This commit is contained in:
Cameron Gutman
2026-07-03 13:17:00 -05:00
parent 1fddbcb7c6
commit 99c45d35ad
+5 -1
View File
@@ -132,7 +132,11 @@
#define LC_ASSERT_VT(x) LC_ASSERT(x)
#endif
#if defined(__has_builtin) && __has_builtin(__builtin_bswap16)
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif
#if __has_builtin(__builtin_bswap16)
#define LC_HAS_BUILTIN_BSWAP
#endif