We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8741697 commit f75adc3Copy full SHA for f75adc3
hidtest/test.c
@@ -18,7 +18,8 @@
18
#include <wchar.h>
19
#include <string.h>
20
#include <stdlib.h>
21
-#include "hidapi.h"
+
22
+#include <hidapi.h>
23
24
// Headers needed for sleeping.
25
#ifdef _WIN32
@@ -175,7 +176,7 @@ int main(int argc, char* argv[])
175
176
printf("waiting...\n");
177
if (res < 0)
178
printf("Unable to read()\n");
- #ifdef WIN32
179
+ #ifdef _WIN32
180
Sleep(500);
181
#else
182
usleep(500*1000);
@@ -193,7 +194,7 @@ int main(int argc, char* argv[])
193
194
/* Free static HIDAPI objects. */
195
hid_exit();
196
-#ifdef WIN32
197
+#ifdef _WIN32
198
system("pause");
199
#endif
200
0 commit comments