MSVC 5 compilation fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -871,6 +871,7 @@ int wxApp::GetComCtl32Version()
|
|||||||
// if so, then we can check for the version
|
// if so, then we can check for the version
|
||||||
if ( dllComCtl32.IsLoaded() )
|
if ( dllComCtl32.IsLoaded() )
|
||||||
{
|
{
|
||||||
|
#ifdef DLLVER_PLATFORM_WINDOWS
|
||||||
// try to use DllGetVersion() if available in _headers_
|
// try to use DllGetVersion() if available in _headers_
|
||||||
wxDYNLIB_FUNCTION( DLLGETVERSIONPROC, DllGetVersion, dllComCtl32 );
|
wxDYNLIB_FUNCTION( DLLGETVERSIONPROC, DllGetVersion, dllComCtl32 );
|
||||||
if ( pfnDllGetVersion )
|
if ( pfnDllGetVersion )
|
||||||
@@ -892,6 +893,7 @@ int wxApp::GetComCtl32Version()
|
|||||||
dvi.dwMinorVersion;
|
dvi.dwMinorVersion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// if DllGetVersion() is unavailable either during compile or
|
// if DllGetVersion() is unavailable either during compile or
|
||||||
// run-time, try to guess the version otherwise
|
// run-time, try to guess the version otherwise
|
||||||
|
@@ -28,6 +28,10 @@
|
|||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/apptrait.h"
|
#include "wx/apptrait.h"
|
||||||
|
// MBN: this is a workaround for MSVC 5: if it is not #included in
|
||||||
|
// some wxBase file, wxRecursionGuard methods won't be exported from
|
||||||
|
// wxBase.dll, and MSVC 5 will give linker errors
|
||||||
|
#include "wx/recguard.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user