From: Pete Batard Date: Tue, 20 May 2014 19:42:54 +0000 (+0100) Subject: Windows: fix broken WDK compilation for XP targets X-Git-Tag: upstream/1.0.21~261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d5e7ec80045f1af400e7a84ec2ad7630573ce96;p=platform%2Fupstream%2Flibusb.git Windows: fix broken WDK compilation for XP targets * On XP environments, the call to GetSystemMetrics() fails without an explicit reference to user.lib... which end user applications would also need to do. Considering that this call was just to differentiate Windows 2003 from 2003 R2, just remove it. --- diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 19b2542..6c42971 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -879,7 +879,7 @@ static void get_windows_version(void) break; case 0x51: w = "XP"; break; - case 0x52: w = (!GetSystemMetrics(89)?"2003":"2003_R2"); + case 0x52: w = ("2003"); break; case 0x60: w = (ws?"Vista":"2008"); break; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 2e102e9..70e0559 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10893 +#define LIBUSB_NANO 10894