summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2020-04-07 18:40:14 +0100
committerGitHub <noreply@github.com>2020-04-07 19:40:14 +0200
commitc835c8c4e78cbe3451c2ccdfffe9663f1b428728 (patch)
treed835de01cbfb1e2393a4a1fce8b5daf10835775b /lib
parentab5e26c53cf34a1839dd92d247b5e0a5cde432a0 (diff)
downloadNim-c835c8c4e78cbe3451c2ccdfffe9663f1b428728.tar.gz
fix #13910 (#13917)
Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index 597a5317f..04cf146a8 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -569,7 +569,7 @@ NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, ""
 #define nimModInt(a, b, res) (((*res) = (a) % (b)), 0)
 #define nimModInt64(a, b, res) (((*res) = (a) % (b)), 0)
 
-#if !defined(_MSC_VER) && !defined(NIM_EmulateOverflowChecks)
+#if (!defined(_MSC_VER) || defined(__clang__)) && !defined(NIM_EmulateOverflowChecks)
   /* these exist because we cannot have .compilerProcs that are importc'ed
     by a different name */