Use _setjmp()/_longjmp() only on BSD-like systems for now.
This commit is contained in:
parent
f99c40f61b
commit
cb6441e73d
1 changed files with 3 additions and 1 deletions
|
|
@ -136,5 +136,7 @@ proc initDefines*() =
|
||||||
declareSymbol("emulatedthreadvars")
|
declareSymbol("emulatedthreadvars")
|
||||||
if platform.OS[targetOS].props.contains(ospLacksThreadVars):
|
if platform.OS[targetOS].props.contains(ospLacksThreadVars):
|
||||||
defineSymbol("emulatedthreadvars")
|
defineSymbol("emulatedthreadvars")
|
||||||
if isDefined("posix"):
|
case targetOS
|
||||||
|
of osSolaris, osNetbsd, osFreebsd, osOpenbsd, osMacosx:
|
||||||
defineSymbol("nimRawSetjmp")
|
defineSymbol("nimRawSetjmp")
|
||||||
|
else: discard
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue