diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdlib.in.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 5664fd216f..64231c2d5f 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -260,7 +260,8 @@ _GL_WARN_ON_USE (atoll, "atoll is unportable - " #endif #if @GNULIB_CALLOC_POSIX@ -# if @REPLACE_CALLOC@ +# if (@GNULIB_CALLOC_POSIX@ && @REPLACE_CALLOC_FOR_CALLOC_POSIX@) \ + || (@GNULIB_CALLOC_GNU@ && @REPLACE_CALLOC_FOR_CALLOC_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef calloc # define calloc rpl_calloc |