diff options
author | Reimer Behrends <behrends@gmail.com> | 2014-09-27 18:05:30 +0200 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2014-09-27 18:05:30 +0200 |
commit | cb6441e73d976dcf59b1e55236887fe5d3a1d6ec (patch) | |
tree | 8e3954595c7f52c4a7f4cee371c4bfe0b85240c9 /compiler | |
parent | f99c40f61bc47f98390aab42f686fcb697dc9ce8 (diff) | |
download | Nim-cb6441e73d976dcf59b1e55236887fe5d3a1d6ec.tar.gz |
Use _setjmp()/_longjmp() only on BSD-like systems for now.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/condsyms.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index a2d8b3564..238dbf5c7 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -136,5 +136,7 @@ proc initDefines*() = declareSymbol("emulatedthreadvars") if platform.OS[targetOS].props.contains(ospLacksThreadVars): defineSymbol("emulatedthreadvars") - if isDefined("posix"): + case targetOS + of osSolaris, osNetbsd, osFreebsd, osOpenbsd, osMacosx: defineSymbol("nimRawSetjmp") + else: discard |