diff options
author | notaz | 2016-03-05 03:20:41 +0200 |
---|---|---|
committer | notaz | 2016-03-05 03:20:41 +0200 |
commit | cc3768145667aef20eab35da0908755d5bd395ab (patch) | |
tree | d310bd18d5314916311622f3425a8c6bda844cb2 /configure | |
parent | 5644b26c23a4abd9511c56f39c369a46017585b8 (diff) | |
download | pcsx_rearmed-cc3768145667aef20eab35da0908755d5bd395ab.tar.gz pcsx_rearmed-cc3768145667aef20eab35da0908755d5bd395ab.tar.bz2 pcsx_rearmed-cc3768145667aef20eab35da0908755d5bd395ab.zip |
large file support
not tested if it actually reads over 2GB
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -24,7 +24,13 @@ compile_binary() check_define() { - $CC -E -dD $CFLAGS include/arm_features.h | grep -q $1 || return 1 + $CC -E -dD $CFLAGS include/arm_features.h | grep -q "$1" || return 1 + return 0 +} + +check_define_val() +{ + $CC -E -dD $CFLAGS include/arm_features.h | grep "$1" | awk '{print $3}' return 0 } @@ -477,6 +483,11 @@ if [ "x$need_xlib" = "xyes" ]; then check_xlib_headers || fail "please install libx11-dev" fi +sizeof_long=`check_define_val __SIZEOF_LONG__` +if [ "x$sizeof_long" = "x4" ]; then + CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64" +fi + cat > $TMPC <<EOF void test(void *f, void *d) { fread(d, 1, 1, f); } EOF |