diff options
author | Moonchild <moonchild@palemoon.org> | 2022-03-02 18:19:24 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-03-21 13:23:11 +0000 |
commit | dff3696c29a7c0b8cc3d7ebfa45f67a71f652a2f (patch) | |
tree | 929221864ba9a5ca6823f5c594b4bfc790d930d8 /python | |
parent | e0d9f5cda41908bd0cf9ab8f356206c2f5ac7e6c (diff) | |
download | aura-central-dff3696c29a7c0b8cc3d7ebfa45f67a71f652a2f.tar.gz |
Issue %15 - Part 1: remove a number of old GCC hacks.
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) |