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

This commit is contained in:
Tanguy 2022-06-20 08:21:20 +02:00 • committed by GitHub
commit 40464fa762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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