1 From 0878d933223158343af3fe13e03bcd128e8b4cbc Mon Sep 17 00:00:00 2001
2 From: Fabrice Fontaine <fabrice.fontaine@orange.com>
3 Date: Fri, 22 Apr 2016 17:06:27 +0200
4 Subject: [PATCH 1/1] Fix warning on wcsdup implicit declaration
6 Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
7 cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
9 Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
11 cpp/hidapi/linux/hid.c | 2 ++
12 1 file changed, 2 insertions(+)
14 diff --git a/cpp/hidapi/linux/hid.c b/cpp/hidapi/linux/hid.c
15 index dbf9b9b..c3eb22b 100644
16 --- a/cpp/hidapi/linux/hid.c
17 +++ b/cpp/hidapi/linux/hid.c
19 http://github.com/signal11/hidapi .
20 ********************************************************/
22 +#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */