Skip to content

Commit

Permalink
[ fix ] fix windows CI, aligned_alloc not supported on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhamsteve committed May 17, 2024
1 parent 5d04f89 commit cf5c594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/refc/memoryManagement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *));
Expand Down

0 comments on commit cf5c594

Please sign in to comment.