From fad73018275fe7845b8be18bf08363f6233cb96e Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 9 Feb 2022 20:19:43 -0600 Subject: [PATCH] vecLibFort.c: Fix build on OS X 10.9 and earlier Only include the local macOS 11 SDK copy of vecLib.h when using the macOS 12 SDK or later to prevent build failure when using the OS X 10.9 SDK or older. Fixes #14 --- vecLibFort.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vecLibFort.c b/vecLibFort.c index f5ec7c3..91f4f8e 100644 --- a/vecLibFort.c +++ b/vecLibFort.c @@ -19,9 +19,11 @@ /* Don't load the CLAPACK header, because we are using a different calling convention for the replaced functions than the ones listed there. */ #define __CLAPACK_H +#include +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 120000 #include "vecLib-760.100.h" +#endif #include -#include /* Add a SGEMV fix for Mavericks. See http://www.openradar.me/radar?id=5864367807528960 */