added missing include file and conditional compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2001-10-02 12:26:22 +00:00
parent 89d25d58c5
commit fedad417ce
4 changed files with 24 additions and 0 deletions

View File

@ -13,6 +13,10 @@
#pragma implementation "palette.h" #pragma implementation "palette.h"
#endif #endif
#include "wx/defs.h"
#if wxUSE_PALETTE
#include "wx/palette.h" #include "wx/palette.h"
#if !USE_SHARED_LIBRARIES #if !USE_SHARED_LIBRARIES
@ -106,4 +110,6 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi
return TRUE; return TRUE;
} }
#endif
// wxUSE_PALETTE

View File

@ -13,6 +13,10 @@
#pragma implementation "textctrl.h" #pragma implementation "textctrl.h"
#endif #endif
#include "wx/defs.h"
#if wxUSE_TEXTCTRL
#ifdef __DARWIN__ #ifdef __DARWIN__
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -784,3 +788,5 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
event.Enable( CanRedo() ); event.Enable( CanRedo() );
} }
#endif
// wxUSE_TEXTCTRL

View File

@ -13,6 +13,10 @@
#pragma implementation "palette.h" #pragma implementation "palette.h"
#endif #endif
#include "wx/defs.h"
#if wxUSE_PALETTE
#include "wx/palette.h" #include "wx/palette.h"
#if !USE_SHARED_LIBRARIES #if !USE_SHARED_LIBRARIES
@ -106,4 +110,6 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi
return TRUE; return TRUE;
} }
#endif
// wxUSE_PALETTE

View File

@ -13,6 +13,10 @@
#pragma implementation "textctrl.h" #pragma implementation "textctrl.h"
#endif #endif
#include "wx/defs.h"
#if wxUSE_TEXTCTRL
#ifdef __DARWIN__ #ifdef __DARWIN__
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -784,3 +788,5 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
event.Enable( CanRedo() ); event.Enable( CanRedo() );
} }
#endif
// wxUSE_TEXTCTRL