diff --git a/memzero.c b/memzero.c index b3cb3f99c3..3c3a7383d6 100644 --- a/memzero.c +++ b/memzero.c @@ -18,7 +18,12 @@ #endif // GNU C Library version 2.25 or later. -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25) +#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25)) +#define HAVE_EXPLICIT_BZERO 1 +#endif + +// Newlib +#if defined( __NEWLIB__) #define HAVE_EXPLICIT_BZERO 1 #endif