X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsysdep.h;h=a11080af96d228dc0a7bf9df5e83ffeeacf16f17;hb=67b471f2fa71295b325a574c140faa2735d95781;hp=1986d9f41c59d0f4a60ec4c88be022f16de0c2e0;hpb=4e6fd387fe9444fb6872b1ab106a194c5edf3618;p=pciutils.git diff --git a/lib/sysdep.h b/lib/sysdep.h index 1986d9f..a11080a 100644 --- a/lib/sysdep.h +++ b/lib/sysdep.h @@ -3,7 +3,9 @@ * * Copyright (c) 1997--2020 Martin Mares * - * Can be freely distributed and used under the terms of the GNU GPL. + * Can be freely distributed and used under the terms of the GNU GPL v2+ + * + * SPDX-License-Identifier: GPL-2.0-or-later */ #ifdef __GNUC__ @@ -22,6 +24,14 @@ 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