X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..7b108a5e8cae8552840b532e364536e2dbe47dc7:/include/wx/mac/pngread.h?ds=sidebyside diff --git a/include/wx/mac/pngread.h b/include/wx/mac/pngread.h index 83ef95baf5..8aa50a09d4 100644 --- a/include/wx/mac/pngread.h +++ b/include/wx/mac/pngread.h @@ -11,7 +11,7 @@ #ifndef _WX_PNGREAD__ #define _WX_PNGREAD__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "pngread.h" #endif @@ -50,9 +50,9 @@ protected: long EfeWidth; // Efective Width - GWorldPtr lpbi; + void *lpbi; int bgindex; - wxPalette* Palette; + wxPalette* m_palette; bool imageOK; friend class wxPNGReaderIter; public: @@ -80,7 +80,7 @@ public: bool SetPalette(wxPalette* colourmap); bool SetPalette(int n, rgb_color_struct *rgb_struct); bool SetPalette(int n, byte *r, byte *g=0, byte *b=0); - wxPalette* GetPalette() const { return Palette; } + wxPalette* GetPalette() const { return m_palette; } void NullData(); inline int GetBGIndex(void) { return bgindex; }