diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-07-20 10:26:17 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-07-20 19:20:11 +0000 |
commit | 977f4c2e687a57b3b398bf3cee4245eaf331346a (patch) | |
tree | 5d6b8131b65f7c60fe9efa4b5ca3999a6fbcd0c4 /cmake/modules | |
parent | c78b6cdcefed4066e398f5fb42dd64ed23cf9ce8 (diff) |
CMake: Don't bother testing for _fseeki64 on Windows.
We don't appear to use it and if we ever do need it it's been available
since Visual Studio 2005 / MSVCR80.
Change-Id: Ifd44d78b96a21577ceea635653517a348ded50f7
Reviewed-on: https://code.wireshark.org/review/28778
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/gmxTestLargeFiles.cmake | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cmake/modules/gmxTestLargeFiles.cmake b/cmake/modules/gmxTestLargeFiles.cmake index 0ac8d22b87..c3417edbf0 100644 --- a/cmake/modules/gmxTestLargeFiles.cmake +++ b/cmake/modules/gmxTestLargeFiles.cmake @@ -67,17 +67,11 @@ MACRO(GMX_TEST_LARGE_FILES VARIABLE) endif(FILE64_OK) endif(NOT FILE64_OK) - if(NOT FILE64_OK) - # now check for Windows stuff + if(NOT FILE64_OK AND WIN32) + # Visual C++ has supported fseeki64 since Visual Studio 2005 / MSVCR80. MESSAGE(STATUS "64-bit off_t is not present") - MESSAGE(STATUS "Checking for _fseeki64") - - TRY_COMPILE(FILE64_OK "${CMAKE_BINARY_DIR}" - "${CMAKE_SOURCE_DIR}/cmake/TestWindowsFSeek.c") - if(FILE64_OK) - MESSAGE(STATUS "_fseeki64 is present") - set(HAVE__FSEEKI64 1 CACHE INTERNAL "64-bit file offsets require _fseeki64") - endif(FILE64_OK) + MESSAGE(STATUS "_fseeki64 is present") + set(HAVE__FSEEKI64 1 CACHE INTERNAL "64-bit file offsets require _fseeki64") endif(NOT FILE64_OK) if(NOT FILE64_OK) |