aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/strtold.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-11 20:16:06 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-12 10:16:06 -0600
commit8b8952064cfacf91b18aed37fbd44f621edb6941 (patch)
treed9f29af5d98a654923fedea315e25e59f62ab445 /newlib/libc/stdlib/strtold.c
parent8b83da2d55b2a61f22b8b330f966d06e3092b079 (diff)
downloadnewlib-8b8952064cfacf91b18aed37fbd44f621edb6941.zip
newlib-8b8952064cfacf91b18aed37fbd44f621edb6941.tar.gz
newlib-8b8952064cfacf91b18aed37fbd44f621edb6941.tar.bz2
Fix compile with GCC 5 -Werror
newlib/libc/ * stdio64/freopen64.c: Include <string.h> for memset(). * stdlib/quick_exit.c: Include <unistd.h> for _exit(). * string/gnu_basename.c (__gnu_basename): Fix discarded const qualifier warning. * stdlib/strtold.c: Include "mprec.h" for _strtorx_r(). Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdlib/strtold.c')
-rw-r--r--newlib/libc/stdlib/strtold.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/strtold.c b/newlib/libc/stdlib/strtold.c
index 96254eb..a6d415d 100644
--- a/newlib/libc/stdlib/strtold.c
+++ b/newlib/libc/stdlib/strtold.c
@@ -30,6 +30,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <stdlib.h>
#include "local.h"
+#include "mprec.h"
+#undef FLT_ROUNDS
#ifdef _HAVE_LONG_DOUBLE