diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index 1ceefd77b3..32413eebaf 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -159,8 +159,9 @@ typedef struct tagNMLVDISPINFOW { #endif #endif -#if (defined(__GNUWIN32__) || defined __BORLANDC__) && !defined(HDN_GETDISPINFOW) +#if (defined(__GNUWIN32__) || defined(__BORLANDC__)) && !defined(HDN_GETDISPINFOW) #define HDN_GETDISPINFOW (HDN_FIRST-29) +#if !wxCHECK_W32API_VERSION(2, 2) typedef struct { NMHDR hdr; int iItem; @@ -171,6 +172,7 @@ typedef struct { LPARAM lParam; } NMHDDISPINFOW, *LPNMHDDISPINFOW; #endif +#endif // ----------------------------------------------------------------------------