From fedad417ce939cbb0ddb519e9777145c76712cb8 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Tue, 2 Oct 2001 12:26:22 +0000 Subject: [PATCH] added missing include file and conditional compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/palette.cpp | 6 ++++++ src/mac/carbon/textctrl.cpp | 6 ++++++ src/mac/palette.cpp | 6 ++++++ src/mac/textctrl.cpp | 6 ++++++ 4 files changed, 24 insertions(+) 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 diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index f522366b32..c6a6d86e09 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -13,6 +13,10 @@ #pragma implementation "textctrl.h" #endif +#include "wx/defs.h" + +#if wxUSE_TEXTCTRL + #ifdef __DARWIN__ #include #include @@ -784,3 +788,5 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event) event.Enable( CanRedo() ); } +#endif + // wxUSE_TEXTCTRL diff --git a/src/mac/palette.cpp b/src/mac/palette.cpp index 85a9fd16d8..1c18196135 100644 --- a/src/mac/palette.cpp +++ b/src/mac/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 diff --git a/src/mac/textctrl.cpp b/src/mac/textctrl.cpp index f522366b32..c6a6d86e09 100644 --- a/src/mac/textctrl.cpp +++ b/src/mac/textctrl.cpp @@ -13,6 +13,10 @@ #pragma implementation "textctrl.h" #endif +#include "wx/defs.h" + +#if wxUSE_TEXTCTRL + #ifdef __DARWIN__ #include #include @@ -784,3 +788,5 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event) event.Enable( CanRedo() ); } +#endif + // wxUSE_TEXTCTRL -- 2.49.0