From: Roland McGrath Date: Tue, 12 Nov 2002 22:02:32 +0000 (+0000) Subject: 2002-11-12 Roland McGrath X-Git-Tag: cvs/initial~80 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=00404a964ab9b3a5205605ed7736c8ded2ed1aec;p=glibc.git 2002-11-12 Roland McGrath * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_G_IO_NO_BACKWARD_COMPAT): Define it. --- diff --git a/libio/libioP.h b/libio/libioP.h index 105ffccecc..4fb0d6aba5 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -87,6 +87,16 @@ extern "C" { * object being acted on (i.e. the 'this' parameter). */ +#ifdef _LIBC +# include +# if !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1) + /* Setting this macro disables the use of the _vtable_offset + bias in _IO_JUMPS_FUNCS, below. That is only needed if we + want to support old binaries (see oldfileops.c). */ +# define _G_IO_NO_BACKWARD_COMPAT 1 +# endif +#endif + #if (!defined _IO_USE_OLD_IO_FILE \ && (!defined _G_IO_NO_BACKWARD_COMPAT || _G_IO_NO_BACKWARD_COMPAT == 0)) # define _IO_JUMPS_OFFSET 1