diff options
Diffstat (limited to 'src/lj_def.h')
-rw-r--r-- | src/lj_def.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index f6b5432d..bc3ae937 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
@@ -104,10 +104,6 @@ typedef uintptr_t BloomFilter; | |||
104 | 104 | ||
105 | #if defined(__GNUC__) | 105 | #if defined(__GNUC__) |
106 | 106 | ||
107 | #if (__GNUC__ < 3) || ((__GNUC__ == 3) && __GNUC_MINOR__ < 4) | ||
108 | #error "sorry, need GCC 3.4 or newer" | ||
109 | #endif | ||
110 | |||
111 | #define LJ_NORET __attribute__((noreturn)) | 107 | #define LJ_NORET __attribute__((noreturn)) |
112 | #define LJ_ALIGN(n) __attribute__((aligned(n))) | 108 | #define LJ_ALIGN(n) __attribute__((aligned(n))) |
113 | #define LJ_INLINE inline | 109 | #define LJ_INLINE inline |
@@ -140,7 +136,7 @@ static LJ_AINLINE uint32_t lj_fls(uint32_t x) | |||
140 | #define lj_fls(x) ((uint32_t)(__builtin_clz(x)^31)) | 136 | #define lj_fls(x) ((uint32_t)(__builtin_clz(x)^31)) |
141 | #endif | 137 | #endif |
142 | 138 | ||
143 | #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 | 139 | #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) |
144 | static LJ_AINLINE uint32_t lj_bswap(uint32_t x) | 140 | static LJ_AINLINE uint32_t lj_bswap(uint32_t x) |
145 | { | 141 | { |
146 | return (uint32_t)__builtin_bswap32((int32_t)x); | 142 | return (uint32_t)__builtin_bswap32((int32_t)x); |