Skip to content

Commit

Permalink
configure: enable largefile support by default for Mingw
Browse files Browse the repository at this point in the history
Largefile is supported on Windows.

Co-authored-by: Naveen M K <naveen521kk@gmail.com>
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
  • Loading branch information
3 people committed Jul 19, 2023
1 parent 75adb15 commit 7e18010
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2950,6 +2950,10 @@ dnl LFS does not work with Emscripten 3.1
AS_CASE([$ac_sys_system],
[Emscripten], [have_largefile_support="no"]
)
dnl Activate on windows platforms (32&64-bit) where off_t(4) < fpos_t(8)
AS_CASE([$ac_sys_system],
[MINGW], [have_largefile_support="yes"]
)
AS_VAR_IF([have_largefile_support], [yes], [
AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
[Defined to enable large file support when an off_t is bigger than a long
Expand Down

0 comments on commit 7e18010

Please sign in to comment.