]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/utils.h
Add wxCocoa to the list of ports which don't need wxColour to derive from wxGDIObject.
[wxWidgets.git] / include / wx / utils.h
index c7ea286b9dc316177a95838bfca15eeb9c2a6a61..bba48e566ae93d5cfc3c1e3b724287bccc2936a9 100644 (file)
@@ -733,9 +733,16 @@ inline struct _XDisplay *wxGetX11Display()
 // wxYield(): these functions are obsolete, please use wxApp methods instead!
 // ----------------------------------------------------------------------------
 
+// avoid redeclaring this function here if it had been already declated by
+// wx/app.h, this results in warnings from g++ with -Wredundant-decls
+#ifndef wx_YIELD_DECLARED
+#define wx_YIELD_DECLARED
+
 // Yield to other apps/messages
 WXDLLIMPEXP_BASE bool wxYield();
 
+#endif // wx_YIELD_DECLARED
+
 // Like wxYield, but fails silently if the yield is recursive.
 WXDLLIMPEXP_BASE bool wxYieldIfNeeded();