[Commits] SDL: hidapi/windows/hid.c: fix misplaced #if 0

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 28 01:05:02 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/87fecd66352a
changeset: 12246:87fecd66352a
user:      Ozkan Sezer <sezeroz at gmail.com>
date:      Fri Sep 28 11:04:55 2018 +0300
description:
hidapi/windows/hid.c: fix misplaced #if 0

VendorID && ProductID are only used by the test main(),
otherwise they are unwanted globals.

diffstat:

 src/hidapi/windows/hid.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 0c1c3e41a6f2 -r 87fecd66352a src/hidapi/windows/hid.c
--- a/src/hidapi/windows/hid.c	Fri Sep 28 01:00:47 2018 -0700
+++ b/src/hidapi/windows/hid.c	Fri Sep 28 11:04:55 2018 +0300
@@ -913,6 +913,8 @@
 }
 
 
+#if 0
+
 /*#define PICPGM*/
 /*#define S11*/
 #define P32
@@ -932,8 +934,6 @@
   unsigned short ProductID = 0x0033;
 #endif
 
-
-#if 0
 int __cdecl main(int argc, char* argv[])
 {
 	int res;


More information about the commits mailing list