diff --git a/src/core/stdc/math.d b/src/core/stdc/math.d index b68b45d7c82..64cb3edbdc5 100644 --- a/src/core/stdc/math.d +++ b/src/core/stdc/math.d @@ -1883,12 +1883,8 @@ else /// double fabs(double x); - version(CRuntime_Microsoft) + version( CRuntime_Microsoft ) { - /// - float fabsf(float x) { return fabs(x); } - /// - real fabsl(real x) { return fabs(x); } } else { diff --git a/src/core/stdc/tgmath.d b/src/core/stdc/tgmath.d index 8cb797007c8..79b65e0d3f5 100644 --- a/src/core/stdc/tgmath.d +++ b/src/core/stdc/tgmath.d @@ -869,10 +869,16 @@ else /// alias core.stdc.math.fabs fabs; - /// - alias core.stdc.math.fabsf fabs; - /// - alias core.stdc.math.fabsl fabs; + version( CRuntime_Microsoft ) + { + } + else + { + /// + alias core.stdc.math.fabsf fabs; + /// + alias core.stdc.math.fabsl fabs; + } /// alias core.stdc.complex.cabs fabs;