diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index beffab50b..1f21b275a 100644 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -701,6 +701,7 @@ proc genTry(p: BProc, t: PNode, d: var TLoc) = # if not isEmptyType(t.typ) and d.k == locNone: getTemp(p, t.typ, d) + discard lists.IncludeStr(p.module.headerFiles, "") genLineDir(p, t) var safePoint = getTempName() discard cgsym(p.module, "E_Base") diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index a22c2b069..06da34926 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -31,7 +31,7 @@ type C_TextFileStar = ptr CTextFile C_BinaryFileStar = ptr CBinaryFile - C_JmpBuf {.importc: "jmp_buf", header: "".} = array[0..31, int] + C_JmpBuf {.importc: "jmp_buf", header: "".} = object var c_stdin {.importc: "stdin", nodecl.}: C_TextFileStar