Only use extern C for C++ builds

This commit is contained in:
twinaphex 2016-07-16 19:43:07 +02:00
parent 10f3a63cec
commit 092ca463d2

View File

@ -181,8 +181,16 @@ static void *dinput_init(void)
return di;
}
extern "C" bool doubleclick_on_titlebar_pressed(void);
extern "C" void unset_doubleclick_on_titlebar(void);
#if __cplusplus
extern "C" {
#endif
bool doubleclick_on_titlebar_pressed(void);
void unset_doubleclick_on_titlebar(void);
#if __cplusplus
}
#endif
static void dinput_poll(void *data)
{