X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/24f9edfdae97396b0159f86eec86d002d338d062..007bea23c3245bac82c24c0f783a7baa5ac672cc:/src/motif/font.cpp diff --git a/src/motif/font.cpp b/src/motif/font.cpp index 4e7186a805..c4c0f9fcd6 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "font.h" #endif @@ -188,7 +188,7 @@ void wxFontRefData::Init(int pointSize, wxFontRefData::~wxFontRefData() { - wxList::Node* node = m_fonts.GetFirst(); + wxList::compatibility_iterator node = m_fonts.GetFirst(); while (node) { wxXFont* f = (wxXFont*) node->GetData(); @@ -511,7 +511,7 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const int pointSize = (M_FONTDATA->m_pointSize * 10 * intScale) / 100; // search existing fonts first - wxList::Node* node = M_FONTDATA->m_fonts.GetFirst(); + wxList::compatibility_iterator node = M_FONTDATA->m_fonts.GetFirst(); while (node) { wxXFont* f = (wxXFont*) node->GetData();