diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/pyyaml/ext/_yaml.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/python/pyyaml/ext/_yaml.c b/python/pyyaml/ext/_yaml.c index f4a5bc524..8a66c0fd3 100644 --- a/python/pyyaml/ext/_yaml.c +++ b/python/pyyaml/ext/_yaml.c @@ -501,14 +501,8 @@ bad: #ifdef __GNUC__ - /* Test for GCC > 2.95 */ - #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) - #define likely(x) __builtin_expect(!!(x), 1) - #define unlikely(x) __builtin_expect(!!(x), 0) - #else /* __GNUC__ > 2 ... */ - #define likely(x) (x) - #define unlikely(x) (x) - #endif /* __GNUC__ > 2 ... */ + #define likely(x) __builtin_expect(!!(x), 1) + #define unlikely(x) __builtin_expect(!!(x), 0) #else /* __GNUC__ */ #define likely(x) (x) #define unlikely(x) (x) |