diff --git a/include/wx/unix/fontutil.h b/include/wx/unix/fontutil.h index 3c7bbd69c9..d13ec168a3 100644 --- a/include/wx/unix/fontutil.h +++ b/include/wx/unix/fontutil.h @@ -32,6 +32,6 @@ wxLoadQueryNearestFont(int pointSize, wxString* xFontName = (wxString *)NULL); // returns the font specified by the given XLFD -extern inline wxNativeFont wxLoadFont(const wxString& fontSpec); +extern wxNativeFont wxLoadFont(const wxString& fontSpec); #endif // _WX_UNIX_FONTUTIL_H_ diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index 9e976bd3f0..820498427f 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -71,7 +71,7 @@ static wxHashTable *g_fontHash = (wxHashTable*) NULL; // define the functions to create and destroy native fonts for this toolkit #ifdef __X__ - inline wxNativeFont wxLoadFont(const wxString& fontSpec) + wxNativeFont wxLoadFont(const wxString& fontSpec) { return XLoadQueryFont((Display *)wxGetDisplay(), fontSpec); } @@ -81,7 +81,7 @@ static wxHashTable *g_fontHash = (wxHashTable*) NULL; XFreeFont((Display *)wxGetDisplay(), (XFontStruct *)font); } #elif defined(__WXGTK__) - inline wxNativeFont wxLoadFont(const wxString& fontSpec) + wxNativeFont wxLoadFont(const wxString& fontSpec) { return gdk_font_load( wxConvertWX2MB(fontSpec) ); }