From 8af6229665977eaaf31b01549f0229e8e5137cfc Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 6 Sep 2011 16:30:13 -0500 Subject: [PATCH] put in extern "C" in case we build as c++ --- src/io_win.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/io_win.c b/src/io_win.c index 22d68af..5ed676b 100644 --- a/src/io_win.c +++ b/src/io_win.c @@ -43,7 +43,13 @@ #ifdef __MINGW32__ /* this prototype is missing from the mingw headers so we must add it or suffer linker errors. */ -WINHIDSDI BOOL WINAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG); +# ifdef __cplusplus +extern "C" { +# endif + WINHIDSDI BOOL WINAPI HidD_SetOutputReport(HANDLE, PVOID, ULONG); +# ifdef __cplusplus +} +# endif #endif int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {