Merge pull request #5159 from AdrianV/patch-5

bcc misses the same functions like vcc
This commit is contained in:
Andreas Rumpf 2016-12-29 11:27:01 +01:00 • committed by GitHub
commit 0f10713c34

View file

@ -213,7 +213,7 @@ when not defined(JS):
## .. code-block:: nim ## .. code-block:: nim
## echo ceil(-2.1) ## -2.0 ## echo ceil(-2.1) ## -2.0
when defined(windows) and defined(vcc): when defined(windows) and (defined(vcc) or defined(bcc)):
# MSVC 2010 don't have trunc/truncf # MSVC 2010 don't have trunc/truncf
# this implementation was inspired by Go-lang Math.Trunc # this implementation was inspired by Go-lang Math.Trunc
proc truncImpl(f: float64): float64 = proc truncImpl(f: float64): float64 =