X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..c2a331e02732bb6a04a42ebf646d54b4373ad122:/src/common/dpycmn.cpp diff --git a/src/common/dpycmn.cpp b/src/common/dpycmn.cpp index bc39bced67..8797f81ecb 100644 --- a/src/common/dpycmn.cpp +++ b/src/common/dpycmn.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "displaybase.h" #endif @@ -44,7 +44,7 @@ const wxVideoMode wxDefaultVideoMode; wxDisplayBase::wxDisplayBase(size_t index) : m_index (index) { - wxASSERT_MSG( m_index < wxDisplayBase::GetCount(), + wxASSERT_MSG( m_index < GetCount(), wxT("An invalid index was passed to wxDisplay") ); }