X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fprintf-frexpl.c;h=26987a7bd1aafc719e7db01b9d108f8acba1c348;hb=931b01b091932a1f796c23379ea32abb68bd5895;hp=f19f32168cb587aa179418c3193b8abf68d1e751;hpb=7be93f2d05131d061bd4790ae33c8d50f50010d7;p=platform%2Fupstream%2Fm4.git
diff --git a/lib/printf-frexpl.c b/lib/printf-frexpl.c
index f19f321..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-2011 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