From 899f880d3913e7e519646135e9211940af07211e Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 10 May 2024 15:08:07 +0200 Subject: [PATCH] configure.cmake: fix build with mingw64 with gcc 14 --- cmake/helpers/configure.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/helpers/configure.cmake b/cmake/helpers/configure.cmake index 6aee8f7d6487..55b1df0f6d6e 100644 --- a/cmake/helpers/configure.cmake +++ b/cmake/helpers/configure.cmake @@ -226,13 +226,13 @@ else () #endif #include #include - int main() { struct _stat64 buf; _wstat64( \"\", &buf ); return 0; } + int main() { struct _stat64 buf; wchar_t path = 0; _wstat64( &path, &buf ); return 0; } " - NO_UNIX_STDIO_64) + WINDOWS_STAT64) - if (NO_UNIX_STDIO_64) + if (WINDOWS_STAT64) set(VSI_STAT64 _stat64) - set(VSI_STAT64_T __stat64) + set(VSI_STAT64_T _stat64) endif () check_function_exists(fopen64 HAVE_FOPEN64)