From 283680f2c1ecaff1779e6e60c1fdec4764e1ac61 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 28 Sep 2018 11:04:55 +0300 Subject: [PATCH] hidapi/windows/hid.c: fix misplaced #if 0 VendorID && ProductID are only used by the test main(), otherwise they are unwanted globals. --- src/hidapi/windows/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hidapi/windows/hid.c b/src/hidapi/windows/hid.c index 86b297ca09782..69b53231c2885 100644 --- a/src/hidapi/windows/hid.c +++ b/src/hidapi/windows/hid.c @@ -913,6 +913,8 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) } +#if 0 + /*#define PICPGM*/ /*#define S11*/ #define P32 @@ -932,8 +934,6 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev) unsigned short ProductID = 0x0033; #endif - -#if 0 int __cdecl main(int argc, char* argv[]) { int res;