Skip to content

Commit 7c0dc53

Browse files
authored
Update README.md (#324)
Clean/correct includes in the README example.
1 parent f75adc3 commit 7c0dc53

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,13 @@ Generic HID sample looks like this (with error checking removed for
8383
simplicity):
8484

8585
**Warning: Only run the code you understand, and only when it conforms to the
86-
device spec. Writing data at random to your HID devices can break them.**
86+
device spec. Writing data (`hid_write`) at random to your HID devices can break them.**
8787

8888
```c
89-
#ifdef WIN32
90-
#include <windows.h>
91-
#endif
92-
#include <stdio.h>
93-
#include <stdlib.h>
94-
#include "hidapi.h"
89+
#include <stdio.h> // printf
90+
#include <wchar.h> // wprintf
91+
92+
#include <hidapi.h>
9593

9694
#define MAX_STR 255
9795

0 commit comments

Comments
 (0)