mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Fix compatibility with GCC versions that lack __has_builtin()
This commit is contained in:
1 parent
1fddbcb7c6
commit
99c45d35ad
1 file changed
+5
-1
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user