From: Lars Op den Kamp Date: Fri, 30 Dec 2011 14:28:38 +0000 (+0100) Subject: cec: place in libudev include in an extern C block. fixes compilations on older libud... X-Git-Tag: upstream/2.2.0~1^2~42^2~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5fa3eb869409c1d99ce8e4299df1600bad72118e;p=deb_libcec.git cec: place in libudev include in an extern C block. fixes compilations on older libudev versions (e.g. on Hardy). closes #2. credits @fbuenemann --- diff --git a/src/lib/AdapterDetection.cpp b/src/lib/AdapterDetection.cpp index b304e43..de1da7c 100644 --- a/src/lib/AdapterDetection.cpp +++ b/src/lib/AdapterDetection.cpp @@ -50,8 +50,10 @@ static GUID USB_RAW_GUID = { 0xA5DCBF10, 0x6530, 0x11D2, { 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED } }; #elif defined(HAVE_LIBUDEV) #include -#include #include +extern "C" { +#include +} #endif #define CEC_VID 0x2548