X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fprintf-frexpl.c;h=cc8db67e33e4ccb67bcae8701603d6cc24317e0f;hb=92249085071a973e2c0621b0415b93d2e48bb00d;hp=460b609b4043c8d0b163d86a6a9051cbbbcfbc7d;hpb=c7e61475680fa226bd9b8bdd469cd66914e630f5;p=debian%2Fgzip
diff --git a/lib/printf-frexpl.c b/lib/printf-frexpl.c
index 460b609..cc8db67 100644
--- a/lib/printf-frexpl.c
+++ b/lib/printf-frexpl.c
@@ -1,5 +1,5 @@
/* Split a 'long double' into fraction and mantissa, for hexadecimal printf.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2018 Free Software Foundation, Inc.
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
@@ -12,7 +12,26 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see . */
+ along with this program. If not, see . */
-#define USE_LONG_DOUBLE
-#include "printf-frexp.c"
+#include
+
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+/* Specification. */
+# include "printf-frexpl.h"
+
+# include "printf-frexp.h"
+
+long double
+printf_frexpl (long double x, int *expptr)
+{
+ return printf_frexp (x, expptr);
+}
+
+#else
+
+# define USE_LONG_DOUBLE
+# include "printf-frexp.c"
+
+#endif