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:
wm4 2019-06-30 01:27:26 +02:00
parent 9fd90c549c
commit 3e22ed46b4
1 changed files with 1 additions and 3 deletions

View File

@ -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"]