Skip to content

Commit

Permalink
configure.cmake: fix build with mingw64 with gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 10, 2024
1 parent 102def0 commit 899f880
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/helpers/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ else ()
#endif
#include <sys/types.h>
#include <sys/stat.h>
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)
Expand Down

0 comments on commit 899f880

Please sign in to comment.