mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
build: stop defining _LARGEFILE[64]_SOURCE
_LARGEFILE_SOURCE and _LARGEFILE64_SOURCE are not required for 64 bit off_t, only _FILE_OFFSET_BITS. See somewhere on: https://wiki.musl-libc.org/faq.html I didn't test this anywhere except 64 bit Linux. It's probably a good idea to test on Windows and all Android versions.
This commit is contained in:
parent
9fd90c549c
commit
3e22ed46b4
@ -18,9 +18,7 @@ def __test_and_add_flags__(ctx, flags):
|
||||
|
||||
def __add_generic_flags__(ctx):
|
||||
ctx.env.CFLAGS += ["-D_ISOC99_SOURCE", "-D_GNU_SOURCE",
|
||||
"-D_LARGEFILE_SOURCE", "-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
"-Wall"]
|
||||
"-D_FILE_OFFSET_BITS=64", "-Wall"]
|
||||
|
||||
if ctx.check_cc(cflags="-std=c11", mandatory=False):
|
||||
ctx.env.CFLAGS += ["-std=c11"]
|
||||
|
Loading…
Reference in New Issue
Block a user