X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b80d34a52121a70a5a4bf9ba6d0cd6a8372b38c..c2a331e02732bb6a04a42ebf646d54b4373ad122:/src/common/dcbase.cpp diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 8534732e7b..c525c04d8e 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -13,7 +13,7 @@ // declarations // ============================================================================ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcbase.h" #endif @@ -290,7 +290,11 @@ void wxDCBase::DoDrawSpline( wxList *points ) wx_spline_add_point(x1, y1); - while ((node = node->GetNext())) + while ((node = node->GetNext()) +#if !wxUSE_STL + != NULL +#endif // !wxUSE_STL + ) { p = (wxPoint *)node->GetData(); x1 = x2;