git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8618
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-#if defined(__WXDEBUG__) && defined(__WXMSW__)
- // see comments in src/msw/dcclient.cpp where g_isPainting is defined
+#if defined(__WXDEBUG__) && (defined(__WXMSW__) || defined(__WXPM__))
+ // see comments in src/msw|os2/dcclient.cpp where g_isPainting is defined
extern WXDLLEXPORT int g_isPainting;
#endif // debug
extern WXDLLEXPORT int g_isPainting;
#endif // debug
m_eventType = wxEVT_PAINT;
m_id = Id;
m_eventType = wxEVT_PAINT;
m_id = Id;
-#if defined(__WXDEBUG__) && defined(__WXMSW__)
+#if defined(__WXDEBUG__) && (defined(__WXMSW__) || defined(__WXPM__))
// set the internal flag for the duration of processing of WM_PAINT
g_isPainting++;
#endif // debug
}
// set the internal flag for the duration of processing of WM_PAINT
g_isPainting++;
#endif // debug
}
-#if defined(__WXDEBUG__) && defined(__WXMSW__)
+#if defined(__WXDEBUG__) && (defined(__WXMSW__) || defined(__WXPM__))
~wxPaintEvent()
{
g_isPainting--;
~wxPaintEvent()
{
g_isPainting--;