diff --git a/common/include/Utilities/pxCheckBox.h b/common/include/Utilities/pxCheckBox.h index 5f59a0161c..c4bb3da640 100644 --- a/common/include/Utilities/pxCheckBox.h +++ b/common/include/Utilities/pxCheckBox.h @@ -62,8 +62,16 @@ static void operator+=( wxSizer& target, pxCheckBox* src ) target.Add( src, wxSF.Expand() ); } +#ifdef __LINUX__ template<> void operator+=( wxSizer& target, const pxWindowAndFlags& src ) { target.Add( src.window, src.flags ); } +#else +template<> +static void operator+=( wxSizer& target, const pxWindowAndFlags& src ) +{ + target.Add( src.window, src.flags ); +} +#endif diff --git a/common/include/Utilities/pxStaticText.h b/common/include/Utilities/pxStaticText.h index 9be6c0cef4..682192c152 100644 --- a/common/include/Utilities/pxStaticText.h +++ b/common/include/Utilities/pxStaticText.h @@ -90,12 +90,19 @@ static void operator+=( wxSizer& target, pxStaticText* src ) src->AddTo( target ); } +#ifdef __LINUX__ template<> void operator+=( wxSizer& target, const pxWindowAndFlags& src ) { target.Add( src.window, src.flags ); } - +#else +template<> +static void operator+=( wxSizer& target, const pxWindowAndFlags& src ) +{ + target.Add( src.window, src.flags ); +} +#endif // -------------------------------------------------------------------------------------- // pxStaticHeading // --------------------------------------------------------------------------------------