Skip to content

Commit f75adc3

Browse files
authored
Correct example including hidapi.h
1 parent 8741697 commit f75adc3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hidtest/test.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#include <wchar.h>
1919
#include <string.h>
2020
#include <stdlib.h>
21-
#include "hidapi.h"
21+
22+
#include <hidapi.h>
2223

2324
// Headers needed for sleeping.
2425
#ifdef _WIN32
@@ -175,7 +176,7 @@ int main(int argc, char* argv[])
175176
printf("waiting...\n");
176177
if (res < 0)
177178
printf("Unable to read()\n");
178-
#ifdef WIN32
179+
#ifdef _WIN32
179180
Sleep(500);
180181
#else
181182
usleep(500*1000);
@@ -193,7 +194,7 @@ int main(int argc, char* argv[])
193194
/* Free static HIDAPI objects. */
194195
hid_exit();
195196

196-
#ifdef WIN32
197+
#ifdef _WIN32
197198
system("pause");
198199
#endif
199200

0 commit comments

Comments
 (0)