From: Vadim Zeitlin Date: Sat, 29 Jul 2006 20:33:10 +0000 (+0000) Subject: compilation fix for wxUSE_DYNLIB_CLASS == 0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/40e0cf4894ea266fe18f9ef041b72bc8324fd45f compilation fix for wxUSE_DYNLIB_CLASS == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utilsgui.cpp b/src/msw/utilsgui.cpp index ee1e45a8f9..d1acea6ad5 100644 --- a/src/msw/utilsgui.cpp +++ b/src/msw/utilsgui.cpp @@ -460,6 +460,7 @@ void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2) extern bool wxEnableFileNameAutoComplete(HWND hwnd) { +#if wxUSE_DYNLIB_CLASS typedef HRESULT (WINAPI *SHAutoComplete_t)(HWND, DWORD); static SHAutoComplete_t s_pfnSHAutoComplete = NULL; @@ -494,5 +495,9 @@ extern bool wxEnableFileNameAutoComplete(HWND hwnd) } return true; +#else + wxUnusedVar(hwnd); + return false; +#endif // wxUSE_DYNLIB_CLASS/!wxUSE_DYNLIB_CLASS }