diff options
author | Tanguy <tanguy@status.im> | 2022-06-20 08:21:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 08:21:20 +0200 |
commit | 40464fa7626a616a3881c0b16a74b9ec7d788720 (patch) | |
tree | 602be30f03eef1d182862eb4066d1cad4dfb89f8 /lib | |
parent | 5e32fc785527d9b71ebab643f142fbab13eb29ce (diff) | |
download | Nim-40464fa7626a616a3881c0b16a74b9ec7d788720.tar.gz |
Fix nimRawSetjmp for VCC [backport: 1.2] (#19899)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/ansi_c.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 5d0ecc01c..74f79167a 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -118,7 +118,7 @@ elif defined(nimBuiltinSetjmp): c_builtin_setjmp(unsafeAddr jmpb[0]) elif defined(nimRawSetjmp) and not defined(nimStdSetjmp): - when defined(windows): + when defined(windows) and not defined(vcc): # No `_longjmp()` on Windows. proc c_longjmp*(jmpb: C_JmpBuf, retval: cint) {. header: "<setjmp.h>", importc: "longjmp".} |