put in extern "C" in case we build as c++

This commit is contained in:
Ryan Pavlik
2011-09-06 16:30:13 -05:00
parent f9584f7f67
commit 8af6229665

View File

@@ -43,7 +43,13 @@
#ifdef __MINGW32__ #ifdef __MINGW32__
/* this prototype is missing from the mingw headers so we must add it /* this prototype is missing from the mingw headers so we must add it
or suffer linker errors. */ 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 #endif
int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) { int wiiuse_find(struct wiimote_t** wm, int max_wiimotes, int timeout) {