diff --git a/include/wx/generic/textdlgg.h b/include/wx/generic/textdlgg.h index f27c49d5c5..a0f8fbcf3b 100644 --- a/include/wx/generic/textdlgg.h +++ b/include/wx/generic/textdlgg.h @@ -9,8 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __TEXTDLGH_G__ -#define __TEXTDLGH_G__ +#ifndef _WX_TEXTDLGG_H_ +#define _WX_TEXTDLGG_H_ #include "wx/defs.h" @@ -20,6 +20,7 @@ #if wxUSE_VALIDATORS #include "wx/valtext.h" +#include "wx/textctrl.h" #endif class WXDLLIMPEXP_FWD_CORE wxTextCtrl; @@ -109,5 +110,4 @@ wxGetPasswordFromUser(const wxString& message, #endif // wxUSE_TEXTDLG -#endif - // __TEXTDLGH_G__ +#endif // _WX_TEXTDLGG_H_ diff --git a/include/wx/valtext.h b/include/wx/valtext.h index 7ebc787069..5f85d95c27 100644 --- a/include/wx/valtext.h +++ b/include/wx/valtext.h @@ -9,13 +9,15 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef _WX_VALTEXTH__ -#define _WX_VALTEXTH__ +#ifndef _WX_VALTEXT_H_ +#define _WX_VALTEXT_H_ #include "wx/defs.h" #if wxUSE_VALIDATORS && (wxUSE_TEXTCTRL || wxUSE_COMBOBOX) +class WXDLLIMPEXP_FWD_CORE wxTextEntry; + #include "wx/validate.h" #define wxFILTER_NONE 0x0000 @@ -93,5 +95,4 @@ private: #endif // wxUSE_VALIDATORS && (wxUSE_TEXTCTRL || wxUSE_COMBOBOX) -#endif - // _WX_VALTEXTH__ +#endif // _WX_VALTEXT_H_ diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index e7f637ff25..0c1eeaba2d 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -23,6 +23,7 @@ #ifndef WX_PRECOMP #include #include "wx/textctrl.h" + #include "wx/combobox.h" #include "wx/utils.h" #include "wx/msgdlg.h" #include "wx/intl.h"