Add missing fseeko check
authorevpobr <evpobr@gmail.com>
Thu, 25 Apr 2019 07:28:56 +0000 (12:28 +0500)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 May 2019 01:41:48 +0000 (11:41 +1000)
CMakeLists.txt

index 8f83b38..38f6132 100644 (file)
@@ -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(
     $<$<BOOL:${HAVE_BYTESWAP_H}>:HAVE_BYTESWAP_H>
     $<$<BOOL:${HAVE_INTTYPES_H}>:HAVE_INTTYPES_H>
     $<$<BOOL:${HAVE_STDINT_H}>:HAVE_STDINT_H>
+    $<$<BOOL:${HAVE_FSEEKO}>:HAVE_FSEEKO>
     $<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
     CPU_IS_BIG_ENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
     CPU_IS_LITTLE_ENDIAN=$<NOT:$<BOOL:${CPU_IS_BIG_ENDIAN}>>