]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed GCC version testing.
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 5 Mar 2015 21:42:24 +0000 (23:42 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 5 Mar 2015 21:42:24 +0000 (23:42 +0200)
Modules/socketmodule.c

index 483dae546add45042df4dc2e8cf5d28f2055cd8d..057430b7040c6205acaa5f7be3090dfcab37e9a0 100644 (file)
@@ -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__