mirror of
https://github.com/logos-storage/nim-leopard.git
synced 2026-01-08 08:33:09 +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>".}
|
{.importc: "aligned_alloc", header: "<stdlib.h>".}
|
||||||
|
|
||||||
proc alignedFree*[T](p: ptr T) {.inline.} =
|
proc alignedFree*[T](p: ptr T) {.inline.} =
|
||||||
{.importc: "free_aligned", header: "<stdlib.h>".}
|
|
||||||
c_free(p)
|
c_free(p)
|
||||||
else:
|
else:
|
||||||
{.warning: "Falling back to manual pointer alignment, might end-up using more memory!".}
|
{.warning: "Falling back to manual pointer alignment, might end-up using more memory!".}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user