Fix warnings about wxOSX_USE_CARBON being undefined when using g++.

Test for __WXMAC__ before testing wxOSX_USE_CARBON to avoid -Wundef warnings
from g++ in non-Mac builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-10-10 17:12:42 +00:00
parent 3648be1f8f
commit 7652eada41
2 changed files with 3 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ protected:
// wxOSX/Carbon doesn't generate mouse capture loss events currently so
// poll for the capture loss ourselves.
#if wxOSX_USE_CARBON
#if defined(__WXMAC__) && wxOSX_USE_CARBON
// check if the mouse needs captured or released
void OnIdle(wxIdleEvent& event);
#endif