From 33d1ab773f622cdb0a64501f9cad20dbde8a5745 Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Fri, 30 Aug 2024 16:34:41 +0200 Subject: [PATCH] check against glibc and not gcc --- deps/libnetcdf/config.h | 5 ++--- deps/libnetcdf/netcdf/config.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/deps/libnetcdf/config.h b/deps/libnetcdf/config.h index 1fd924562..60f44ff2e 100644 --- a/deps/libnetcdf/config.h +++ b/deps/libnetcdf/config.h @@ -125,13 +125,12 @@ #define USE_NETCDF4 1 #define USE_NETCDF_2 1 -#ifdef __GNUC__ +#include #include -#if __GNUC_PREREQ(2, 38) +#if __GLIBC_PREREQ(2, 38) #define HAVE_STRLCAT 1 #endif #endif -#endif #ifdef WIN32 #ifdef _MSC_VER diff --git a/deps/libnetcdf/netcdf/config.h b/deps/libnetcdf/netcdf/config.h index 1fd924562..60f44ff2e 100644 --- a/deps/libnetcdf/netcdf/config.h +++ b/deps/libnetcdf/netcdf/config.h @@ -125,13 +125,12 @@ #define USE_NETCDF4 1 #define USE_NETCDF_2 1 -#ifdef __GNUC__ +#include #include -#if __GNUC_PREREQ(2, 38) +#if __GLIBC_PREREQ(2, 38) #define HAVE_STRLCAT 1 #endif #endif -#endif #ifdef WIN32 #ifdef _MSC_VER