diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2018-07-30 12:10:51 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-30 11:10:51 +0200 |
commit | 6b40114f21e681b0110a74add7a61b16df4d2fb8 (patch) | |
tree | 020d0ba3fa300b97b600cd13b4e6acabf7991da3 | |
parent | 404f0d64afa5cb18c54c52d261609f60a00cdb46 (diff) | |
download | Nim-6b40114f21e681b0110a74add7a61b16df4d2fb8.tar.gz |
Added c_abort to ansi_c (#8449)
-rw-r--r-- | lib/system/ansi_c.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 4d21f8747..f593d4c99 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -27,6 +27,9 @@ proc c_strcmp(a, b: cstring): cint {. importc: "strcmp", header: "<string.h>", noSideEffect.} proc c_strlen(a: cstring): csize {. importc: "strlen", header: "<string.h>", noSideEffect.} +proc c_abort() {. + importc: "abort", header: "<stdlib.h>", noSideEffect.} + when defined(linux) and defined(amd64): type |