From 5cd66781280ada9ab07148be7f468c3d7389da95 Mon Sep 17 00:00:00 2001 From: Ilya Yaroshenko Date: Mon, 9 Feb 2015 16:52:38 +0300 Subject: [PATCH] fix Issue 14157 https://issues.dlang.org/show_bug.cgi?id=14157 --- src/core/stdc/math.d | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/core/stdc/math.d b/src/core/stdc/math.d index 8f868addb71..b68b45d7c82 100644 --- a/src/core/stdc/math.d +++ b/src/core/stdc/math.d @@ -1883,10 +1883,20 @@ else /// double fabs(double x); - /// - float fabsf(float x); - /// - real fabsl(real x); + version(CRuntime_Microsoft) + { + /// + float fabsf(float x) { return fabs(x); } + /// + real fabsl(real x) { return fabs(x); } + } + else + { + /// + float fabsf(float x); + /// + real fabsl(real x); + } /// double hypot(double x, double y);