From: Tim Rühsen Date: Sat, 7 Jan 2017 17:10:48 +0000 (+0100) Subject: Avoid -Wundef warning about undefined __USE_FILE_OFFSET64. X-Git-Tag: v1.0~6403 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=dbc7752c526d1eb267cace67917c88db99ccbcdd;p=gnulib.git Avoid -Wundef warning about undefined __USE_FILE_OFFSET64. * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined. --- diff --git a/ChangeLog b/ChangeLog index 14918104a2..ad6c7fe549 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-01-07 Tim Rühsen (tiny change) + + Avoid -Wundef warning about undefined __USE_FILE_OFFSET64. + * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined. + 2017-01-07 Bruno Haible stdioext: Port to Minix 3.2 and newer. diff --git a/lib/glob-libc.h b/lib/glob-libc.h index 6fb271a1e6..d54043144a 100644 --- a/lib/glob-libc.h +++ b/lib/glob-libc.h @@ -158,7 +158,7 @@ typedef struct } glob64_t; #endif -#if __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB +#if defined __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB # define glob glob64 # define globfree globfree64 #endif