From ff4b136ab87a525ce814d350b66677bfe3eabe9b Mon Sep 17 00:00:00 2001 From: Takayuki Matsuoka Date: Sat, 13 Aug 2022 03:59:49 +0900 Subject: Fix: replace strtoull with _strtoui64 for MSVC2010 https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strtoui64-wcstoui64-strtoui64-l-wcstoui64-l --- tests/datagencli.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/datagencli.c b/tests/datagencli.c index 2976b530..ccb27dfc 100644 --- a/tests/datagencli.c +++ b/tests/datagencli.c @@ -33,6 +33,14 @@ #include "lz4.h" /* LZ4_VERSION_STRING */ +/************************************** +* 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 **************************************/ -- cgit v1.2.3