]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix warnings about wxOSX_USE_CARBON being undefined when using g++.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Oct 2011 17:12:42 +0000 (17:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Oct 2011 17:12:42 +0000 (17:12 +0000)
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

include/wx/popupwin.h
src/common/popupcmn.cpp

index 4f451a644e76e397b0d059354634b519410b070b..a4438261d4ad656c56b6efc4c203d091c0b3fb45 100644 (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
index 36445b9087f4d73c10cbbebeb86562d442338f13..bf9c45aa06c294da754ed36fec5f5cd3bc1ca66f 100644 (file)
@@ -116,7 +116,7 @@ BEGIN_EVENT_TABLE(wxPopupFocusHandler, wxEvtHandler)
 END_EVENT_TABLE()
 
 BEGIN_EVENT_TABLE(wxPopupTransientWindow, wxPopupWindow)
-#if wxOSX_USE_CARBON
+#if defined(__WXMAC__) && wxOSX_USE_CARBON
     EVT_IDLE(wxPopupTransientWindow::OnIdle)
 #endif
 END_EVENT_TABLE()
@@ -426,7 +426,7 @@ bool wxPopupTransientWindow::ProcessLeftDown(wxMouseEvent& WXUNUSED(event))
     return false;
 }
 
-#if wxOSX_USE_CARBON
+#if defined(__WXMAC__) && wxOSX_USE_CARBON
 void wxPopupTransientWindow::OnIdle(wxIdleEvent& event)
 {
     event.Skip();