fix importc pragma on unix

This commit is contained in:
Dmitriy Ryajov 2022-03-26 18:14:18 -06:00
parent e91a31447d
commit 6821b5fa6f
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -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!".}