From d38b867f68de55c0f2b38cedadb85fe8636c5527 Mon Sep 17 00:00:00 2001 From: evpobr Date: Thu, 25 Apr 2019 12:28:56 +0500 Subject: Add missing fseeko check --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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=$> -- cgit v1.2.1