]> wimlib.net Git - wimlib/blobdiff - src/endianness.h
Make repository be in 'distclean' state.
[wimlib] / src / endianness.h
index 43eace2415b5b731aebcfd176cd3dadd58a201e8..fc00e5416d9db5143cb908d8c3305723384dec87 100644 (file)
@@ -29,7 +29,7 @@
 /* Changes the endianness of a 32-bit value. */
 static inline uint32_t bswap32(uint32_t n)
 {
-#ifdef __GNUC__
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
        return __builtin_bswap32(n);
 #else
        return (n << 24) | ((n & 0xff00) << 8) | ((n & 0xff0000) >> 8) |