diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f83b382..38f6132a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,8 @@ check_include_file("inttypes.h" HAVE_INTTYPES_H) check_include_file("stdint.h" HAVE_STDINT_H) check_include_file("x86intrin.h" HAVE_X86INTRIN_H) +check_function_exists(fseeko HAVE_FSEEKO) + check_c_source_compiles("int main() { return __builtin_bswap16 (0) ; }" HAVE_BSWAP16) check_c_source_compiles("int main() { return __builtin_bswap32 (0) ; }" HAVE_BSWAP32) @@ -67,6 +69,7 @@ add_compile_definitions( $<$:HAVE_BYTESWAP_H> $<$:HAVE_INTTYPES_H> $<$:HAVE_STDINT_H> + $<$:HAVE_FSEEKO> $<$:_CRT_SECURE_NO_WARNINGS> CPU_IS_BIG_ENDIAN=$ CPU_IS_LITTLE_ENDIAN=$>