mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-11 13:36:08 +03:00
Merge pull request #3283 from dunhamsteve/fix-windows-ci
[ fix ] fix windows CI, aligned_alloc not supported on win32
This commit is contained in:
commit
2a3f0311f2
@ -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