mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-10-05 17:38:38 +03:00
[ fix ] fix windows CI, aligned_alloc not supported on win32
This commit is contained in:
parent
5d04f89c7b
commit
cf5c594474
@ -2,7 +2,8 @@
|
||||
#include "runtime.h"
|
||||
|
||||
Value *idris2_newValue(size_t size) {
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
|
||||
#if !defined(_WIN32) && defined(__STDC_VERSION__) && \
|
||||
(__STDC_VERSION__ >= 201112) /* C11 */
|
||||
Value *retVal = (Value *)aligned_alloc(
|
||||
sizeof(void *),
|
||||
((size + sizeof(void *) - 1) / sizeof(void *)) * sizeof(void *));
|
||||
|
Loading…
Reference in New Issue
Block a user