Skip to content

Commit

Permalink
check against glibc and not gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Aug 30, 2024
1 parent 0c18d6b commit 33d1ab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions deps/libnetcdf/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,12 @@
#define USE_NETCDF4 1
#define USE_NETCDF_2 1

#ifdef __GNUC__
#include <gnu/libc-version.h>
#include <features.h>
#if __GNUC_PREREQ(2, 38)
#if __GLIBC_PREREQ(2, 38)
#define HAVE_STRLCAT 1
#endif
#endif
#endif

#ifdef WIN32
#ifdef _MSC_VER
Expand Down
5 changes: 2 additions & 3 deletions deps/libnetcdf/netcdf/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,12 @@
#define USE_NETCDF4 1
#define USE_NETCDF_2 1

#ifdef __GNUC__
#include <gnu/libc-version.h>
#include <features.h>
#if __GNUC_PREREQ(2, 38)
#if __GLIBC_PREREQ(2, 38)
#define HAVE_STRLCAT 1
#endif
#endif
#endif

#ifdef WIN32
#ifdef _MSC_VER
Expand Down

0 comments on commit 33d1ab7

Please sign in to comment.