summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-12-29 11:27:01 +0100
committerGitHub <noreply@github.com>2016-12-29 11:27:01 +0100
commit0f10713c3443de009298215f2d5d832d2dd6f1ea (patch)
treee955904737aff6f9646c57fc040831e373b5c9ba /lib/pure
parent49f2341cd73eb2ab067629e39049382da98e5d48 (diff)
parent8a487d32232bfa48da84b1c59c9618511b5721e7 (diff)
downloadNim-0f10713c3443de009298215f2d5d832d2dd6f1ea.tar.gz
Merge pull request #5159 from AdrianV/patch-5
bcc misses the same functions like vcc
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/math.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 4ef169b4f..a8432b6f0 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -213,7 +213,7 @@ when not defined(JS):
     ## .. code-block:: nim
     ##  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
     # this implementation was inspired by Go-lang Math.Trunc
     proc truncImpl(f: float64): float64 =