From 3e22ed46b41bd4e6503bc68fff8322ff937add26 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 30 Jun 2019 01:27:26 +0200 Subject: 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. --- waftools/detections/compiler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'waftools/detections') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 5916475307..c382afcab7 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -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"] -- cgit v1.2.3