diff options
-rw-r--r-- | src/import.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/import.cc b/src/import.cc index fdb7aae..32d4fed 100644 --- a/src/import.cc +++ b/src/import.cc @@ -132,10 +132,10 @@ union stl_facet { void uint32_byte_swap( uint32_t &x ) { -#if defined(__GNUC__) || defined(__clang__) -#if defined(__builtin_bswap32) +#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 + x = __builtin_bswap32( x ); +#elif defined(__clang__) x = __builtin_bswap32( x ); -#endif #elif defined(_MSC_VER) x = _byteswap_ulong( x ); #else |