summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authornagendra modadugu <ngm@google.com>2016-04-20 14:09:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-04-21 03:08:16 -0700
commitc65700730d07dfd6813b5c74c6bbece218d8c3d7 (patch)
treed7d185d7e8076e6579b7e28f5e5ff2ddf5c53622 /builtin
parent671621b4c404f277173780d9ce3346204ab58fec (diff)
downloadchrome-ec-c65700730d07dfd6813b5c74c6bbece218d8c3d7.tar.gz
Add the memcmp() function prototype to builtin/string.h
Add memcmp() to builtin/string.h so that portable third_party code may build without glibc. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 TEST=none Signed-off-by: nagendra modadugu <ngm@google.com> Change-Id: Id52c9c76fceac94bf1998958b43f42ad5d5298d3 Reviewed-on: https://chromium-review.googlesource.com/339878 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Bill Richardson <wfrichar@google.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/string.h b/builtin/string.h
index d30dda8324..0d87c7fa0d 100644
--- a/builtin/string.h
+++ b/builtin/string.h
@@ -10,6 +10,7 @@
#include <stddef.h>
+int memcmp(const void *s1, const void *s2, size_t len);
void *memcpy(void *dest, const void *src, size_t len);
void *memset(void *dest, int c, size_t len);