From a1ea92485eba0fb5121e5a3e8bd30e40c4587c36 Mon Sep 17 00:00:00 2001 From: Jeff Whitaker Date: Wed, 4 Dec 2024 13:17:47 -0700 Subject: [PATCH] fix for compilation on M2 mac` --- include/netcdf-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netcdf-compat.h b/include/netcdf-compat.h index d1144d979..ccfb8322e 100644 --- a/include/netcdf-compat.h +++ b/include/netcdf-compat.h @@ -60,7 +60,7 @@ static inline int nc_get_alignment(int* thresholdp, int* alignmentp) { #else #define HAS_NCRCSET 0 static inline int nc_rc_set(const char* key, const char* value) { return NC_EINVAL; } -static inline const char *nc_rc_get(const char* key) { return NC_EINVAL; } +static inline const char *nc_rc_get(const char* key) { return NULL; } #endif #if NC_VERSION_GE(4, 4, 0)