]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
string_wrappers: include replace.h
authorMatthew DeVore <matvore@google.com>
Fri, 7 Aug 2020 18:14:57 +0000 (11:14 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 28 Aug 2020 00:56:34 +0000 (00:56 +0000)
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>
lib/util/string_wrappers.h

index 1feea8cbc071adc846ddce913787cc3f305831d1..00bce079fbf9abad5e8ec68f12703022177e1b5d 100644 (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; \