X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..3242feb1c09fd28c5a41ed1ee76e37d56213f19b:/src/mac/carbon/palette.cpp?ds=sidebyside diff --git a/src/mac/carbon/palette.cpp b/src/mac/carbon/palette.cpp index 85a9fd16d8..1c18196135 100644 --- a/src/mac/carbon/palette.cpp +++ b/src/mac/carbon/palette.cpp @@ -13,6 +13,10 @@ #pragma implementation "palette.h" #endif +#include "wx/defs.h" + +#if wxUSE_PALETTE + #include "wx/palette.h" #if !USE_SHARED_LIBRARIES @@ -106,4 +110,6 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi return TRUE; } +#endif + // wxUSE_PALETTE