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-02 18:19:24 +0000
commit5790af6c8bbe8acd82cb0db4fc6f49dca301985a (patch)
treedf508244b46e7b6ecdffca4bcb539c26610a4e49 /python
parent39e80ed9afe2e5bba65a2786c7eff7c3189d49e8 (diff)
downloadGRE-5790af6c8bbe8acd82cb0db4fc6f49dca301985a.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)