diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index 9c19488f92..d40b27c79d 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -502,7 +502,11 @@ public: #include "wx/hash.h" // pseudo-template HWND <-> wxWindow hash table +#if WXWIN_COMPATIBILITY_2_4 +WX_DECLARE_HASH(wxWindow, wxWindowList, wxWinHashTable); +#else WX_DECLARE_HASH(wxWindowMSW, wxWindowList, wxWinHashTable); +#endif extern wxWinHashTable *wxWinHandleHash;