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 a1f413bcac
commit 1561a83c49

View File

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