diff options
| -rw-r--r-- | luaconf.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -664,7 +664,7 @@ | |||
| 664 | */ | 664 | */ |
| 665 | #if !defined(luai_likely) | 665 | #if !defined(luai_likely) |
| 666 | 666 | ||
| 667 | #if defined(__GNUC__) && !defined(LUA_NOBUILTIN) | 667 | #if !defined(LUA_NOBUILTIN) && defined(__GNUC__) && (__GNUC__ >= 3) |
| 668 | #define luai_likely(x) (__builtin_expect(((x) != 0), 1)) | 668 | #define luai_likely(x) (__builtin_expect(((x) != 0), 1)) |
| 669 | #define luai_unlikely(x) (__builtin_expect(((x) != 0), 0)) | 669 | #define luai_unlikely(x) (__builtin_expect(((x) != 0), 0)) |
| 670 | #else | 670 | #else |
