summaryrefslogtreecommitdiff
path: root/gl/printf-frexpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/printf-frexpl.c')
-rw-r--r--gl/printf-frexpl.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/gl/printf-frexpl.c b/gl/printf-frexpl.c
index f19f32168c..2de6528bc0 100644
--- a/gl/printf-frexpl.c
+++ b/gl/printf-frexpl.c
@@ -14,5 +14,24 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#define USE_LONG_DOUBLE
-#include "printf-frexp.c"
+#include <config.h>
+
+#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