diff options
Diffstat (limited to 'lib/string.in.h')
| -rw-r--r-- | lib/string.in.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index 9a6b311d007..aaff5638d0f 100644 --- a/lib/string.in.h +++ b/lib/string.in.h | |||
| @@ -74,6 +74,23 @@ | |||
| 74 | /* The definition of _GL_WARN_ON_USE is copied here. */ | 74 | /* The definition of _GL_WARN_ON_USE is copied here. */ |
| 75 | 75 | ||
| 76 | 76 | ||
| 77 | /* Clear a block of memory. The compiler will not delete a call to | ||
| 78 | this function, even if the block is dead after the call. */ | ||
| 79 | #if @GNULIB_EXPLICIT_BZERO@ | ||
| 80 | # if ! @HAVE_EXPLICIT_BZERO@ | ||
| 81 | _GL_FUNCDECL_SYS (explicit_bzero, void, | ||
| 82 | (void *__dest, size_t __n) _GL_ARG_NONNULL ((1))); | ||
| 83 | # endif | ||
| 84 | _GL_CXXALIAS_SYS (explicit_bzero, void, (void *__dest, size_t __n)); | ||
| 85 | _GL_CXXALIASWARN (explicit_bzero); | ||
| 86 | #elif defined GNULIB_POSIXCHECK | ||
| 87 | # undef explicit_bzero | ||
| 88 | # if HAVE_RAW_DECL_EXPLICIT_BZERO | ||
| 89 | _GL_WARN_ON_USE (explicit_bzero, "explicit_bzero is unportable - " | ||
| 90 | "use gnulib module explicit_bzero for portability"); | ||
| 91 | # endif | ||
| 92 | #endif | ||
| 93 | |||
| 77 | /* Find the index of the least-significant set bit. */ | 94 | /* Find the index of the least-significant set bit. */ |
| 78 | #if @GNULIB_FFSL@ | 95 | #if @GNULIB_FFSL@ |
| 79 | # if !@HAVE_FFSL@ | 96 | # if !@HAVE_FFSL@ |