X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7260478196b59ffd83c3328f710ba6f45860428..c932709d31bf359c994dc2050bec1b3b986bbd62:/src/common/valgen.cpp?ds=sidebyside diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index f5c7a37a0e..b4d296e619 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "valgen.h" #endif @@ -168,7 +168,7 @@ bool wxGenericValidator::TransferToWindow(void) } } else #endif -#if wxUSE_SPINCTRL && !defined(__WIN16__) && !defined(__WXMOTIF__) +#if wxUSE_SPINCTRL && !defined(__WXMOTIF__) if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinCtrl)) ) { wxSpinCtrl* pControl = (wxSpinCtrl*) m_validatorWindow; @@ -179,7 +179,7 @@ bool wxGenericValidator::TransferToWindow(void) } } else #endif -#if wxUSE_SPINBTN && !defined(__WIN16__) +#if wxUSE_SPINBTN if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) ) { wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow; @@ -284,7 +284,7 @@ bool wxGenericValidator::TransferToWindow(void) } else #endif // array controls -#if wxUSE_CHECKLISTBOX && !defined(__WIN16__) +#if wxUSE_CHECKLISTBOX // NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first: if (m_validatorWindow->IsKindOf(CLASSINFO(wxCheckListBox)) ) { @@ -398,7 +398,7 @@ bool wxGenericValidator::TransferFromWindow(void) } } else #endif -#if wxUSE_SPINCTRL && !defined(__WIN16__) && !defined(__WXMOTIF__) +#if wxUSE_SPINCTRL && !defined(__WXMOTIF__) if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinCtrl)) ) { wxSpinCtrl* pControl = (wxSpinCtrl*) m_validatorWindow; @@ -409,7 +409,7 @@ bool wxGenericValidator::TransferFromWindow(void) } } else #endif -#if wxUSE_SPINBTN && !defined(__WIN16__) +#if wxUSE_SPINBTN if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) ) { wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow; @@ -502,7 +502,6 @@ bool wxGenericValidator::TransferFromWindow(void) #endif // array controls #if wxUSE_CHECKLISTBOX -#ifndef __WIN16__ // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox MUST come first: if (m_validatorWindow->IsKindOf(CLASSINFO(wxCheckListBox)) ) { @@ -527,7 +526,6 @@ bool wxGenericValidator::TransferFromWindow(void) return FALSE; } else #endif -#endif #if wxUSE_LISTBOX if (m_validatorWindow->IsKindOf(CLASSINFO(wxListBox)) ) {