Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1163 from 9il/fabs
Browse files Browse the repository at this point in the history
fix Issue 14157. Part 2
  • Loading branch information
schveiguy committed Feb 12, 2015
2 parents 97d46a7 + 9d85ff2 commit 1371602
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src/core/stdc/math.d
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
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

0 comments on commit 1371602

Please sign in to comment.