diff options
author | Will Newton <will.newton@linaro.org> | 2014-03-17 20:37:42 +0000 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-03-17 20:37:42 +0000 |
commit | c15cf13a8a672bd27bf3d94b995c52872eed537d (patch) | |
tree | 886e9b149af2b370b046160852d9dbff3926ab17 | |
parent | d0ac132472b6e4ca9a6664d979724f700f8fb48a (diff) | |
download | glibc-c15cf13a8a672bd27bf3d94b995c52872eed537d.tar glibc-c15cf13a8a672bd27bf3d94b995c52872eed537d.tar.gz glibc-c15cf13a8a672bd27bf3d94b995c52872eed537d.tar.bz2 glibc-c15cf13a8a672bd27bf3d94b995c52872eed537d.zip |
Revert "Fix _IO_JUMPS_OFFSET -Wundef warnings"
This reverts commit f7efd7c3dfffa3c417e9d3c4cb19d9954a3b1421.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | libio/genops.c | 2 | ||||
-rw-r--r-- | libio/libioP.h | 2 | ||||
-rw-r--r-- | stdio-common/vfprintf.c | 2 |
4 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,9 @@ 2014-03-17 Will Newton <will.newton@linaro.org> + * libio/genops.c: Revert previous change. + * libio/libioP.h: Likewise. + * stdio-common/vfprintf.c: Likewise. + * sysdeps/generic/math_private.h: Revert previous change. diff --git a/libio/genops.c b/libio/genops.c index 42efe58ea1..e0ce8cc0f4 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -624,7 +624,7 @@ _IO_old_init (fp, flags) fp->_IO_save_end = NULL; fp->_markers = NULL; fp->_cur_column = 0; -#ifdef _IO_JUMPS_OFFSET +#if _IO_JUMPS_OFFSET fp->_vtable_offset = 0; #endif #ifdef _IO_MTSAFE_IO diff --git a/libio/libioP.h b/libio/libioP.h index a59e95d89c..8a7b85beb0 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -106,7 +106,7 @@ extern "C" { #define _IO_WIDE_JUMPS(THIS) ((struct _IO_FILE *) (THIS))->_wide_data->_wide_vtable #define _IO_CHECK_WIDE(THIS) (((struct _IO_FILE *) (THIS))->_wide_data != NULL) -#ifdef _IO_JUMPS_OFFSET +#if _IO_JUMPS_OFFSET # define _IO_JUMPS_FUNC(THIS) \ (*(struct _IO_jump_t **) ((void *) &_IO_JUMPS ((struct _IO_FILE_plus *) (THIS)) \ + (THIS)->_vtable_offset)) diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 70cdba40e5..f7e5f61cc8 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -2297,7 +2297,7 @@ buffered_vfprintf (_IO_FILE *s, const CHAR_T *format, hp->_mode = -1; #endif hp->_IO_file_flags = _IO_MAGIC|_IO_NO_READS|_IO_USER_LOCK; -#ifdef _IO_JUMPS_OFFSET +#if _IO_JUMPS_OFFSET hp->_vtable_offset = 0; #endif #ifdef _IO_MTSAFE_IO |