summaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-11-11 10:30:22 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-11 18:37:37 +0000
commit45f7ed217d54b45dbf8460d2c29471a00c1a6ccc (patch)
treeb404302f369ac998c17b5790b77fca3014109117 /include/util.h
parente2dfdb09d970143b521a9c6f316ebe09159988ed (diff)
downloadchrome-ec-45f7ed217d54b45dbf8460d2c29471a00c1a6ccc.tar.gz
zephyr: add strtoull function for 64-bit input
We do need a true 64-bit input function for common platform/ec code, and zephyr doesn't have this. Add the support to the shim BRANCH=none BUG=b:172592963,b:172512307 TEST=build EC and volteer and posix_ec Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I81f69fdbe03916f3a54091ce6c077db32ed3a73c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532679 Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/util.h b/include/util.h
index ffb4c0e10d..17c1b3aed8 100644
--- a/include/util.h
+++ b/include/util.h
@@ -125,10 +125,7 @@ int strncmp(const char *s1, const char *s2, size_t n);
/* Like strtol(), but for integers. */
int strtoi(const char *nptr, char **endptr, int base);
-/* TODO(b/172592963): This should be unsigned long, and conflicts with Zephyr */
-#ifndef CONFIG_ZEPHYR
unsigned long long int strtoull(const char *nptr, char **endptr, int base);
-#endif
/* Like strncpy(), but guarantees null termination. */
char *strzcpy(char *dest, const char *src, int len);