]> mj.ucw.cz Git - pciutils.git/commit
libpci: For PCI_OS_WINDOWS define strncasecmp as alias for _strnicmp
authorPali Rohár <pali@kernel.org>
Sun, 26 Dec 2021 21:11:22 +0000 (22:11 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Feb 2022 11:58:17 +0000 (12:58 +0100)
commit777029819b21c0260a3b766e3bad531d9fb4340b
treee8b04e3f3230f16326c20658f9ca62be379ab461
parent4e6fd387fe9444fb6872b1ab106a194c5edf3618
libpci: For PCI_OS_WINDOWS define strncasecmp as alias for _strnicmp

CRTDLL, MSVCRT and UCRT runtimes provides strncasecmp()-like functionality
in _strnicmp() function. As opposite of strcasecmp() for which there are
_stricmp() and _strcmpi() variants, for strncasecmp() there is only
_strnicmp() function.

Without this change linking final setpci.exe executable undef MSVC fails.
lib/sysdep.h