diff options
author | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 18:59:49 (GMT) |
---|---|---|
committer | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-12 18:59:49 (GMT) |
commit | ff4b136ab87a525ce814d350b66677bfe3eabe9b (patch) | |
tree | cd7b79b794d14c720939edcf4c11c045aedd158b | |
parent | 8a071ea3235893476946e34ad7fb59a8e417e78a (diff) | |
download | lz4-ff4b136ab87a525ce814d350b66677bfe3eabe9b.zip lz4-ff4b136ab87a525ce814d350b66677bfe3eabe9b.tar.gz lz4-ff4b136ab87a525ce814d350b66677bfe3eabe9b.tar.bz2 |
Fix: replace strtoull with _strtoui64 for MSVC2010
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strtoui64-wcstoui64-strtoui64-l-wcstoui64-l
-rw-r--r-- | tests/datagencli.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/datagencli.c b/tests/datagencli.c index 2976b53..ccb27df 100644 --- a/tests/datagencli.c +++ b/tests/datagencli.c @@ -34,6 +34,14 @@ /************************************** +* Compiler specific +**************************************/ +#ifdef _MSC_VER /* Visual Studio */ +#define strtoull _strtoui64 /* https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strtoui64-wcstoui64-strtoui64-l-wcstoui64-l */ +#endif + + +/************************************** * Constants **************************************/ #define KB *(1 <<10) |