]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
moved declaration of variable only used if wxUSE_GIF inside #if wxUSE_GIF block
[wxWidgets.git] / src / html / htmlwin.cpp
index 69ced30b42bab417c10b88f284010135403875e2..83307773bcc063f82e2a901054da40f9b2f04ae8 100644 (file)
@@ -804,7 +804,7 @@ bool wxHtmlWindow::CopySelection(ClipboardType t)
 #if wxUSE_CLIPBOARD
     if ( m_selection )
     {
-#ifdef __UNIX__
+#if defined(__UNIX__) && !defined(__WXMAC__)
         wxTheClipboard->UsePrimarySelection(t == Primary);
 #else // !__UNIX__
         // Primary selection exists only under X11, so don't do anything under
@@ -826,6 +826,8 @@ bool wxHtmlWindow::CopySelection(ClipboardType t)
             return true;
         }
     }
+#else
+    wxUnusedVar(t);
 #endif // wxUSE_CLIPBOARD
 
     return false;
@@ -1027,6 +1029,8 @@ void wxHtmlWindow::OnMouseDown(wxMouseEvent& event)
             CaptureMouse();
         }
     }
+#else
+    wxUnusedVar(event);
 #endif // wxUSE_CLIPBOARD
 }