From 9589acd00e23e513acd99b16c67586baa515f36a Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 1 Aug 2013 00:16:29 +0200 Subject: [PATCH] fixes #532 --- compiler/ccgstmts.nim | 1 + lib/system/ansi_c.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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