Fix nimRawSetjmp for VCC [backport: 1.2] (#19899)

(cherry picked from commit 40464fa762)
This commit is contained in:
Tanguy
2022-06-20 08:21:20 +02:00
committed by narimiran
parent 843c479593
commit 7e5686a828

View File

@@ -115,7 +115,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".}