From: Pali Rohár Date: Wed, 24 May 2023 19:45:48 +0000 (+0200) Subject: windows: Add strtoull defines for msvc X-Git-Tag: v3.11.0~26 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=225dd4ba76e1599cad2ce7eb7b984bb40c12f7ef;p=pciutils.git windows: Add strtoull defines for msvc --- diff --git a/lib/sysdep.h b/lib/sysdep.h index 7502035..a11080a 100644 --- a/lib/sysdep.h +++ b/lib/sysdep.h @@ -25,6 +25,13 @@ typedef u16 word; #ifdef PCI_OS_WINDOWS #define strcasecmp _strcmpi #define strncasecmp _strnicmp +#if defined(_MSC_VER) && _MSC_VER < 1800 +#if _MSC_VER < 1300 +#define strtoull strtoul +#else +#define strtoull _strtoui64 +#endif +#endif #if defined(_MSC_VER) && _MSC_VER < 1900 #define snprintf _snprintf #define vsnprintf _vsnprintf