summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-03-02 18:19:24 +0000
committerMoonchild <moonchild@palemoon.org>2022-03-21 13:23:11 +0000
commitdff3696c29a7c0b8cc3d7ebfa45f67a71f652a2f (patch)
tree929221864ba9a5ca6823f5c594b4bfc790d930d8 /python
parente0d9f5cda41908bd0cf9ab8f356206c2f5ac7e6c (diff)
downloadaura-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.c10
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)