diff options
author | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-07 08:59:16 +0900 |
---|---|---|
committer | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-07 08:59:16 +0900 |
commit | 80441ff754d605068bdaae813bf64a23f4c000bc (patch) | |
tree | 85e27218e435bfd81f9bf3d1999744f9bf6355f5 /ConfigureChecks.cmake | |
parent | edbafdbd88f4d8243433c30c4a8ca81706b27b70 (diff) |
Remove a workaround for an older version of GCC.
GLIBC's byte swap functions are a good fallback option.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 0eb04018..88980ea1 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -107,30 +107,16 @@ endif() # Determine which kind of byte swap functions your compiler supports. -# GCC's __builtin_bswap* should be checked individually -# because some of them can be missing depends on the GCC version. check_cxx_source_compiles(" int main() { __builtin_bswap16(0); - return 0; - } -" HAVE_GCC_BYTESWAP_16) - -check_cxx_source_compiles(" - int main() { __builtin_bswap32(0); - return 0; - } -" HAVE_GCC_BYTESWAP_32) - -check_cxx_source_compiles(" - int main() { __builtin_bswap64(0); return 0; } -" HAVE_GCC_BYTESWAP_64) +" HAVE_GCC_BYTESWAP) -if(NOT HAVE_GCC_BYTESWAP_16 OR NOT HAVE_GCC_BYTESWAP_32 OR NOT HAVE_GCC_BYTESWAP_64) +if(NOT HAVE_GCC_BYTESWAP) check_cxx_source_compiles(" #include <byteswap.h> int main() { |