]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gdicmn.cpp
added #include <fcntl.h> to allow compilation under Linux
[wxWidgets.git] / src / common / gdicmn.cpp
index 34df0496ceb30c201545a065ec5ac757de496fc1..2661bd44cca97e1069d0c609bd0a37eb2a870985 100644 (file)
@@ -20,7 +20,7 @@
 #pragma hdrstop
 #endif
 
-
+#include "wx/event.h"
 #include "wx/gdicmn.h"
 #include "wx/brush.h"
 #include "wx/pen.h"
@@ -270,6 +270,9 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
 
 // TODO for other implementations. This should really go into
 // platform-specific directories.
+#ifdef __WXMAC__
+  else return NULL;
+#endif
 #ifdef __WXSTUBS__
   else return NULL;
 #endif
@@ -598,7 +601,7 @@ wxFont *wxFontList::
           //          each_font->GetFontId () == FamilyOrFontId) /* New font system */
           //#else
           each_font->GetFamily () == FamilyOrFontId &&
-          (!each_font->GetFaceName() || each_font->GetFaceName() == Face))
+          ((each_font->GetFaceName() == "") || each_font->GetFaceName() == Face))
         //#endif
         return each_font;
     }