mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-07-12 18:04:04 +00:00
Fix compatibility with GCC versions that lack __has_builtin()
This commit is contained in:
+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