#include "wx/msw/ole/oleutils.h"
#include <shldisp.h>
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined (__WATCOMC__)
// needed for IID_IAutoComplete, IID_IAutoComplete2 and ACO_AUTOSUGGEST
#include <shlguid.h>
#endif
static wxDynamicLibrary s_dllShlwapi;
if ( s_pfnSHAutoComplete == (SHAutoComplete_t)-1 )
{
- wxLogNull noLog;
-
- if ( !s_dllShlwapi.Load(_T("shlwapi.dll"), wxDL_VERBATIM) )
+ if ( !s_dllShlwapi.Load(_T("shlwapi.dll"), wxDL_VERBATIM | wxDL_QUIET) )
{
s_pfnSHAutoComplete = NULL;
}
pAutoComplete->Release();
return true;
#else // !HAS_AUTOCOMPLETE
+ wxUnusedVar(choices);
+
return false;
#endif // HAS_AUTOCOMPLETE/!HAS_AUTOCOMPLETE
}