diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2013-12-13 09:09:47 +0100 |
---|---|---|
committer | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2014-05-06 15:33:27 +0200 |
commit | dd01c10735b5dae4797700e25db89821856df41a (patch) | |
tree | 31b458b872f794a206759d73be4927389929b248 | |
parent | f294081d501ad98b7d7f50bc73f291063caf2c5f (diff) | |
download | chromium-linaro-master.tar.gz |
Fix build with clanglinaro-master
string_util.h tries to redefine snprintf - which doesn't work if
Bionic #defines snprintf, which it does in a #ifdef __clang__ block
Change-Id: I1d98147b39f86ad309e677c377c97f972c3a0d0c
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | base/string_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h index b6a1c0d1..594f43e3 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -24,6 +24,10 @@ // and then remove this. #include "base/stringprintf.h" +// When using clang, snprintf is implemented as a define in Bionic, +// breaking the redefinition below +#undef snprintf + // Safe standard library wrappers for all platforms. namespace base { |