Index: gdb/gnulib/import/float.c |
diff --git a/gdb/gnulib/import/mbsrtowcs.c b/gdb/gnulib/import/float.c |
similarity index 51% |
copy from gdb/gnulib/import/mbsrtowcs.c |
copy to gdb/gnulib/import/float.c |
index e3ec8767c33a7280b4a641b15a22873f40b27548..ea31866548b66c4ed87a93eb4a91036541bb1047 100644 |
--- a/gdb/gnulib/import/mbsrtowcs.c |
+++ b/gdb/gnulib/import/float.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. |
+/* Auxiliary definitions for <float.h>. |
+ 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,16 @@ |
#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> |
+ |
+#if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ |
+const union gl_long_double_union gl_LDBL_MAX = |
+ { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } }; |
+#elif defined __i386__ |
+const union gl_long_double_union gl_LDBL_MAX = |
+ { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } }; |
+#else |
+/* This declaration is solely to ensure that after preprocessing |
+ this file is never empty. */ |
+typedef int dummy; |
+#endif |