Skip to content

Commit

Permalink
Merge pull request #2657 from dawgfoto/portMathFreeBSD
Browse files Browse the repository at this point in the history
fmodl is available on newer FreeBSD versions
  • Loading branch information
WalterBright committed Oct 20, 2013
2 parents 01c985a + a171ab6 commit b12d171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/root/port.c
Expand Up @@ -569,7 +569,7 @@ int Port::isInfinity(double r)

longdouble Port::fmodl(longdouble x, longdouble y)
{
#if __FreeBSD__ || __OpenBSD__
#if __FreeBSD__ && __FreeBSD_version < 800000 || __OpenBSD__
return ::fmod(x, y); // hack for now, fix later
#else
return ::fmodl(x, y);
Expand Down

0 comments on commit b12d171

Please sign in to comment.