From 9abfe212f856f02a29c220a081df8c5a0b0b706c Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Fri, 21 Jun 2024 04:32:55 -0700 Subject: [PATCH] nbody_util: fix compile on Windows ARM64 Signed-off-by: Steven Noonan --- src/nbody_util.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/nbody_util.cpp b/src/nbody_util.cpp index cdc624a..1ffcb2c 100644 --- a/src/nbody_util.cpp +++ b/src/nbody_util.cpp @@ -43,12 +43,8 @@ #ifdef _WIN32 #include #else -#if !defined(__aarch64__) +#if !defined(__aarch64__) && !defined(_M_ARM64) #include -#else -#include -#define _mm_malloc(x,y) malloc(x) -#define _mm_free free #endif #include #include @@ -57,6 +53,11 @@ #include #include #endif +#if defined(__arch64__) || defined(_M_ARM64) +#include +#define _mm_malloc(x,y) malloc(x) +#define _mm_free free +#endif #include #include "nbody_util.h"