1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

string_wrappers: include replace.h

To ensure we always get the right value for the config.h macro
`HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS`, #include "lib/util/replace.h"
rather than rely on it being included by the API user.

Signed-off-by: Matthew DeVore <matvore@google.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Matthew DeVore 2020-08-07 11:14:57 -07:00 committed by Jeremy Allison
parent d485f369e9
commit 1fde7db3bc

View File

@ -23,6 +23,8 @@
#ifndef _STRING_WRAPPERS_H
#define _STRING_WRAPPERS_H
#include "lib/replace/replace.h" /* for config symbols */
#define strlcpy_base(dest, src, base, size) \
do { \
const char *_strlcpy_base_src = (const char *)src; \