aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-04-05 22:41:33 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-04-05 22:41:33 +0300
commitb34c5ce4b22e8d7b81f9895d15054af41d17f805 (patch)
tree69cadc942b763f59537b5aa0d390fef50c9ef1c6 /src
parentBuild: Upgrade m4/acx_pthread.m4 to the latest version. (diff)
downloadxz-b34c5ce4b22e8d7b81f9895d15054af41d17f805.tar.xz
liblzma: Use TUKLIB_GNUC_REQ to check GCC version in sha256.c.
Diffstat (limited to 'src')
-rw-r--r--src/liblzma/check/sha256.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liblzma/check/sha256.c b/src/liblzma/check/sha256.c
index 04231dba..074cd744 100644
--- a/src/liblzma/check/sha256.c
+++ b/src/liblzma/check/sha256.c
@@ -22,13 +22,13 @@
//
///////////////////////////////////////////////////////////////////////////////
+#include "check.h"
+
// Avoid bogus warnings in transform().
-#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4
+#if TUKLIB_GNUC_REQ(4, 2)
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif
-#include "check.h"
-
// At least on x86, GCC is able to optimize this to a rotate instruction.
#define rotr_32(num, amount) ((num) >> (amount) | (num) << (32 - (amount)))