iconv/loop.c: Fix -Wundef warning with !_STRING_ARCH_unaligned
commit32bead5b6d6edc4421a8ca628ce7dc14d435202a
authorWill Newton <will.newton@linaro.org>
Thu, 10 Jul 2014 08:18:03 +0000 (10 09:18 +0100)
committerWill Newton <will.newton@linaro.org>
Thu, 17 Jul 2014 09:16:09 +0000 (17 10:16 +0100)
tree23cc0513a890752687c5ba65486440c10ed80d43
parent37fccd41923a26bb1c3e083b8bc5e398e77a24d1
iconv/loop.c: Fix -Wundef warning with !_STRING_ARCH_unaligned

If code is required to handle the unaligned case then loop.c includes
itself and relies on the #undefs at the end of the file to avoid
outputting two copies of LOOPFCT and gconv_btowc. However
MAX_NEEDED_INPUT is tested with #if so this causes a warning.
Reorder the code so that the function definitions are in an #else
block to make the behaviour clearer and fix the warning.

Verified that code is unchanged on x86_64 and arm.

ChangeLog:

2014-07-17  Will Newton  <will.newton@linaro.org>

* iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
into an #else block.
ChangeLog
iconv/loop.c