This commit is contained in:
Araq 2013-08-01 00:16:29 +02:00
commit 9589acd00e
2 changed files with 2 additions and 1 deletions

View file

@ -701,6 +701,7 @@ proc genTry(p: BProc, t: PNode, d: var TLoc) =
# #
if not isEmptyType(t.typ) and d.k == locNone: if not isEmptyType(t.typ) and d.k == locNone:
getTemp(p, t.typ, d) getTemp(p, t.typ, d)
discard lists.IncludeStr(p.module.headerFiles, "<setjmp.h>")
genLineDir(p, t) genLineDir(p, t)
var safePoint = getTempName() var safePoint = getTempName()
discard cgsym(p.module, "E_Base") discard cgsym(p.module, "E_Base")

View file

@ -31,7 +31,7 @@ type
C_TextFileStar = ptr CTextFile C_TextFileStar = ptr CTextFile
C_BinaryFileStar = ptr CBinaryFile 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 var
c_stdin {.importc: "stdin", nodecl.}: C_TextFileStar c_stdin {.importc: "stdin", nodecl.}: C_TextFileStar