Fix -Wundef warnings for _IO_JUMPS_OFFSET.
authorRoland McGrath <roland@hack.frob.com>
Thu, 1 May 2014 20:33:13 +0000 (13:33 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 1 May 2014 20:33:13 +0000 (13:33 -0700)
ChangeLog
libio/libioP.h

index 2539d1e..dd8244c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-05-01  Roland McGrath  <roland@hack.frob.com>
 
+       * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
+       (_IO_JUMPS_OFFSET): Define to 0.
+
        * nptl/sysdeps/pthread/bits/libc-lock.h
        [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
        (__libc_lock_define_initialized_recursive): Always define using
index 8a7b85b..bd94041 100644 (file)
@@ -100,6 +100,8 @@ extern "C" {
 #if (!defined _IO_USE_OLD_IO_FILE \
      && (!defined _G_IO_NO_BACKWARD_COMPAT || _G_IO_NO_BACKWARD_COMPAT == 0))
 # define _IO_JUMPS_OFFSET 1
+#else
+# define _IO_JUMPS_OFFSET 0
 #endif
 
 #define _IO_JUMPS(THIS) (THIS)->vtable