Fix libhid compile with /recent/ libc (GNU_SOURCE)

- strtok_r
- strdup
- wcsdup
This commit is contained in:
Robin Gareus 2017-05-20 12:38:49 +02:00
parent 6926b7eb75
commit 9fc65b274e
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@
http://github.com/signal11/hidapi .
********************************************************/
#define _POSIX_C_SOURCE 200809L
/* C */
#include <stdio.h>
#include <string.h>