X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fprintf-frexpl.c;h=26987a7bd1aafc719e7db01b9d108f8acba1c348;hb=0f3fd696606ddc69dde22f5171903fd59989a735;hp=36bac7492b2cbb6991ec4451414c06ebd4e2b380;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip
diff --git a/lib/printf-frexpl.c b/lib/printf-frexpl.c
index 36bac74..26987a7 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, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2013 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
@@ -14,5 +14,24 @@
You should have received a copy of the GNU General Public License
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