mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-02 13:43:08 +00:00
fix importc pragma on unix
This commit is contained in:
parent
e91a31447d
commit
6821b5fa6f
@ -45,7 +45,6 @@ elif defined(unix):
|
||||
{.importc: "aligned_alloc", header: "<stdlib.h>".}
|
||||
|
||||
proc alignedFree*[T](p: ptr T) {.inline.} =
|
||||
{.importc: "free_aligned", header: "<stdlib.h>".}
|
||||
c_free(p)
|
||||
else:
|
||||
{.warning: "Falling back to manual pointer alignment, might end-up using more memory!".}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user