diff --git a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp index 806a3b1431..c0a3498c75 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp @@ -25,6 +25,13 @@ #include "EmuSubroutines.h" // for WmRequestStatus ///////////////////////////// +///////////////////////////////////////////////////////////////////////// +// Defines +// ------------ +#ifndef _WIN32 +#define Sleep(x) usleep(*1000) +#endif +///////////////////////// ///////////////////////////////////////////////////////////////////////// // Event table @@ -176,7 +183,7 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event) DoExtensionConnectedDisconnected(); /* It doesn't seem to be needed but shouldn't it at least take 25 ms to reconnect an extension after we disconnected another? */ - sleep(25); + Sleep(25); } // Update status diff --git a/Source/Plugins/Plugin_Wiimote/Src/main.cpp b/Source/Plugins/Plugin_Wiimote/Src/main.cpp index ebaab22d13..a76a7fa0b2 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/main.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/main.cpp @@ -120,7 +120,7 @@ extern "C" void GetDllInfo (PLUGIN_INFO* _PluginInfo) void DllDebugger(HWND _hParent, bool Show) { } -extern "C" void DllConfig(HWND _hParent) +void DllConfig(HWND _hParent) { #if defined(HAVE_WX) && HAVE_WX wxWindow win;