diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-08-30 11:08:06 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-08-30 15:28:38 -0700 |
| commit | 629002efac8085a9c6321a15b43a47a43ca0e084 (patch) | |
| tree | 8d540d491a6583405e625dd11e12f993457837a7 /src/core/strs.h | |
| parent | e7e980c228c76e108bbc4812f40645d93626757f (diff) | |
| download | nng-629002efac8085a9c6321a15b43a47a43ca0e084.tar.gz nng-629002efac8085a9c6321a15b43a47a43ca0e084.tar.bz2 nng-629002efac8085a9c6321a15b43a47a43ca0e084.zip | |
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.
Diffstat (limited to 'src/core/strs.h')
| -rw-r--r-- | src/core/strs.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
