From 7e5686a82881726ce88ad776364ad0654e52e604 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Mon, 20 Jun 2022 08:21:20 +0200 Subject: [PATCH] Fix nimRawSetjmp for VCC [backport: 1.2] (#19899) (cherry picked from commit 40464fa7626a616a3881c0b16a74b9ec7d788720) --- lib/system/ansi_c.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 0d318d379d..0e5d2e741d 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -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: "", importc: "longjmp".}