summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-05 21:42:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-05 21:42:24 (GMT)
commitcaa01f861cc811f273f8eeff92f32daf7efeeb65 (patch)
treebd3d6cefefb63b955fcfe273fbec9f9f98c6225f /Modules
parenta4c727131efc4b1a7f08d837d20bd9f592197e52 (diff)
downloadcpython-caa01f861cc811f273f8eeff92f32daf7efeeb65.zip
cpython-caa01f861cc811f273f8eeff92f32daf7efeeb65.tar.gz
cpython-caa01f861cc811f273f8eeff92f32daf7efeeb65.tar.bz2
Fixed GCC version testing.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 483dae5..057430b 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1966,13 +1966,13 @@ cmsg_min_space(struct msghdr *msg, struct cmsghdr *cmsgh, size_t space)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
- #if defined(__GNUC__) && ((__GNUC__ == 4) || ((__GNUC__ > 4) && (__GNUC_MINOR__ > 5)))
+ #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
if (msg->msg_controllen < 0)
return 0;
- #if defined(__GNUC__) && ((__GNUC__ == 4) || ((__GNUC__ > 4) && (__GNUC_MINOR__ > 5)))
+ #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
#pragma GCC diagnostic pop
#endif
#ifdef __clang__