From 629002efac8085a9c6321a15b43a47a43ca0e084 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 30 Aug 2018 11:08:06 -0700 Subject: fixes #686 strtoull() not present on Windows This both makes new functions available to the core, and addresses a bug which would have prevented building the ZeroTier transport on Windows. --- src/core/strs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/strs.h') diff --git a/src/core/strs.h b/src/core/strs.h index d4851ecf..4ed1fb57 100644 --- a/src/core/strs.h +++ b/src/core/strs.h @@ -22,5 +22,7 @@ extern char * nni_strcasestr(const char *, const char *); extern int nni_strncasecmp(const char *, const char *, size_t); extern int nni_strcasecmp(const char *, const char *); extern int nni_asprintf(char **, const char *, ...); +extern int nni_strtou64(const char *, uint64_t *); // parses decimal +extern int nni_strtox64(const char *, uint64_t *); // parses hex #endif // CORE_STRS_H -- cgit v1.2.3-70-g09d2