From 01cad722667c7b25535b2d248598f3d535e7caa9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 21 Apr 1998 22:58:23 +0000 Subject: Update. 1998-04-21 21:49 Zack Weinberg * misc/sys/cdefs.h: New macro __REDIRECT to support changing the asm symbol name of functions. * include/features.h: Kill redundant test. * dirent/dirent.h: Use new macros to implement __USE_FILE_OFFSET64. * io/ftw.h: Likewise. * io/sys/stat.h: Likewise. * io/sys/statfs.h: Likewise. * io/sys/statvfs.h: Likewise. * libio/stdio.h: Likewise. * resource/sys/resource.h: Likewise. * rt/aio.h: Likewise. * posix/unistd.h: Use new macros for __USE_FILE_OFFSET64 and __FAVOR_BSD. * signal/signal.h: Use new macros for BSD vs. SysV signal(). * misc/Makefile: Drop bsd-compat.c. Make libbsd-compat.a a dummy library. * misc/bsd-compat.c: Removed. --- include/features.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/features.h b/include/features.h index 141c05031f..935a113a3c 100644 --- a/include/features.h +++ b/include/features.h @@ -237,17 +237,17 @@ #define __GLIBC__ 2 #define __GLIBC_MINOR__ 1 - -#if !defined __GNUC__ || __GNUC__ < 2 -/* In GCC version 2, (__extension__ EXPR) will not complain - about GCC extensions used in EXPR under -ansi or -pedantic. */ -# define __extension__ -#endif - - /* This is here only because every header file already includes this one. */ #ifndef __ASSEMBLER__ # include + +/* If we don't have __REDIRECT, prototypes will be missing if + __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */ +# if defined __USE_FILE_OFFSET64 && !defined __REDIRECT +# define __USE_LARGEFILE +# define __USE_LARGEFILE64 +# endif + #endif /* This is here only because every header file already includes this one. */ -- cgit v1.2.3