Fix warning on wcsdup implicit declaration

Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
This commit is contained in:
Fabrice Fontaine 2016-04-22 17:06:27 +02:00
parent 733975be76
commit 0878d93322

View file

@ -21,6 +21,8 @@
http://github.com/signal11/hidapi .
********************************************************/
#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */
/* C */
#include <stdio.h>
#include <string.h>