diff options
author | Araq <rumpf_a@web.de> | 2013-08-01 00:16:29 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-08-01 00:16:29 +0200 |
commit | 9589acd00e23e513acd99b16c67586baa515f36a (patch) | |
tree | c707975e70e282493b4ca55df04fb3be176351f2 | |
parent | 3ae6043e7e77eef8603cab77dda0a5016f0d87fd (diff) | |
download | Nim-9589acd00e23e513acd99b16c67586baa515f36a.tar.gz |
fixes #532
-rw-r--r-- | compiler/ccgstmts.nim | 1 | ||||
-rw-r--r-- | lib/system/ansi_c.nim | 2 |
2 files changed, 2 insertions, 1 deletions
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, "<setjmp.h>") 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: "<setjmp.h>".} = array[0..31, int] + C_JmpBuf {.importc: "jmp_buf", header: "<setjmp.h>".} = object var c_stdin {.importc: "stdin", nodecl.}: C_TextFileStar |