Skip to content

Commit e050afb

Browse files
authored
Fix sygwin compilation warnings (#331)
Fixes: #330
1 parent e9f8c3e commit e050afb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

windows/hid.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ extern "C" {
7070
#include <stdio.h>
7171
#include <stdlib.h>
7272
#include <string.h>
73+
#include <wctype.h>
7374

7475
#include "hidapi.h"
7576

@@ -412,7 +413,7 @@ static void hid_internal_get_ble_info(struct hid_device_info* dev, DEVINST dev_n
412413

413414
static void hid_internal_get_info(struct hid_device_info* dev)
414415
{
415-
char *tmp = NULL;
416+
const char *tmp = NULL;
416417
wchar_t *interface_path = NULL, *device_id = NULL, *compatible_ids = NULL;
417418
mbstate_t state;
418419
ULONG len;

0 commit comments

Comments
 (0)