Showing with 11 additions and 9 deletions.
  1. +1 −5 src/core/stdc/math.d
  2. +10 −4 src/core/stdc/tgmath.d
6 changes: 1 addition & 5 deletions src/core/stdc/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
14 changes: 10 additions & 4 deletions src/core/stdc/tgmath.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down