| Index: gdb/gnulib/import/itold.c
|
| diff --git a/gdb/gnulib/import/mbsrtowcs.c b/gdb/gnulib/import/itold.c
|
| similarity index 67%
|
| copy from gdb/gnulib/import/mbsrtowcs.c
|
| copy to gdb/gnulib/import/itold.c
|
| index e3ec8767c33a7280b4a641b15a22873f40b27548..95ff7e1785f9e0dae7333e62bf9acd076b9037d1 100644
|
| --- a/gdb/gnulib/import/mbsrtowcs.c
|
| +++ b/gdb/gnulib/import/itold.c
|
| @@ -1,6 +1,6 @@
|
| -/* Convert string to wide string.
|
| - Copyright (C) 2008-2012 Free Software Foundation, Inc.
|
| - Written by Bruno Haible <bruno@clisp.org>, 2008.
|
| +/* Replacement for 'int' to 'long double' conversion routine.
|
| + Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
| + Written by Bruno Haible <bruno@clisp.org>, 2011.
|
|
|
| This program is free software: you can redistribute it and/or modify
|
| it under the terms of the GNU General Public License as published by
|
| @@ -18,15 +18,11 @@
|
| #include <config.h>
|
|
|
| /* Specification. */
|
| -#include <wchar.h>
|
| -
|
| -#include <errno.h>
|
| -#include <limits.h>
|
| -#include <stdlib.h>
|
| -
|
| -#include "strnlen1.h"
|
| -
|
| -
|
| -extern mbstate_t _gl_mbsrtowcs_state;
|
| -
|
| -#include "mbsrtowcs-impl.h"
|
| +#include <float.h>
|
| +
|
| +void
|
| +_Qp_itoq (long double *result, int a)
|
| +{
|
| + /* Convert from 'int' to 'double', then from 'double' to 'long double'. */
|
| + *result = (double) a;
|
| +}
|
|
|