diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-05 21:56:38 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-08-05 22:04:17 +0200 |
commit | 7e6fb333f7a5f50d73a354790d9cbaf19b762724 (patch) | |
tree | 7cb7226e36e7ba584c2d5a5e0e1f56d7cb8ab0f2 | |
parent | 516101c7023af25083c385b91a1ca7dc635c15a6 (diff) | |
download | glib-mingw-file-offset-64.tar.gz |
meson: define _FILE_OFFSET_BITS=64 for MinGW. See #1476mingw-file-offset-64
The autotools build set it by default and we use off_t in various places,
even on Windows. Also set it with the meson build to avoid any regressions.
Ideally we shouldn't use off_t and use 64bit capable API on Windows instead, so
we get large file support with MSVC as well.
-rw-r--r-- | meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build index f758365f3..20bdb3743 100644 --- a/meson.build +++ b/meson.build @@ -114,6 +114,14 @@ if host_system == 'windows' glib_conf.set('BROKEN_POLL', true) endif +if host_system == 'windows' and cc.get_id() != 'msvc' + # FIXME: Ideally we shouldn't depend on this on Windows and should use + # 64 bit capable Windows API that also works with MSVC. + # The autotools build did set this for mingw and while meson sets it + # for gcc/clang by default, it doesn't do so on Windows. + glib_conf.set('_FILE_OFFSET_BITS', 64) +endif + # Check for GNU visibility attributes g_have_gnuc_visibility = cc.compiles(''' void |