X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..95d8425febe48f9c1e954bce5fb9661f3cd2bea9:/src/mac/carbon/colour.cpp diff --git a/src/mac/carbon/colour.cpp b/src/mac/carbon/colour.cpp index 86487f7a35..49cd199d3a 100644 --- a/src/mac/carbon/colour.cpp +++ b/src/mac/carbon/colour.cpp @@ -9,10 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "colour.h" #endif +#include "wx/wxprec.h" + #include "wx/gdicmn.h" #include "wx/colour.h" @@ -54,16 +56,6 @@ wxColour::wxColour (const wxColour& col) memcpy( &m_pixel , &col.m_pixel , 6 ) ; } -wxColour::wxColour (const wxColour* col) -{ - m_red = col->m_red; - m_green = col->m_green; - m_blue = col->m_blue; - m_isInit = col->m_isInit; - - memcpy( &m_pixel , &col->m_pixel , 6 ) ; -} - wxColour& wxColour::operator =(const wxColour& col) { m_red = col.m_red;