X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Ffrexpl.c;h=5ec2780ed489ba458c8e2cdfccc5e23a6bb31388;hb=28b3b0f96fad9500afcd09186e55cee86d9323f7;hp=c80599953947bb54a80c2ccfb7842a1a026b415b;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip
diff --git a/lib/frexpl.c b/lib/frexpl.c
index c805999..5ec2780 100644
--- a/lib/frexpl.c
+++ b/lib/frexpl.c
@@ -1,5 +1,5 @@
/* Split a 'long double' into fraction and mantissa.
- 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,22 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-#define USE_LONG_DOUBLE
-#include "frexp.c"
+#include
+
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
+
+/* Specification. */
+# include
+
+long double
+frexpl (long double x, int *expptr)
+{
+ return frexp (x, expptr);
+}
+
+#else
+
+# define USE_LONG_DOUBLE
+# include "frexp.c"
+
+#endif