diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index 471d93f822..adda132947 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -2,7 +2,6 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 1994 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com - * Copyright (C) 2011 Wayne Stambaugh * Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or @@ -457,8 +456,13 @@ void GERBVIEW_FRAME::Liste_D_Codes() } } - wxSingleChoiceDialog dlg( this, wxEmptyString, _( "D Codes" ), list, NULL, +#if wxCHECK_VERSION( 2, 9, 4 ) + wxSingleChoiceDialog dlg( this, wxEmptyString, _( "D Codes" ), list, (void**)NULL, wxCHOICEDLG_STYLE & ~wxCANCEL ); +#else + wxSingleChoiceDialog dlg( this, wxEmptyString, _( "D Codes" ), list, (char**)NULL, + wxCHOICEDLG_STYLE & ~wxCANCEL ); +#endif dlg.ShowModal(); } diff --git a/pcbnew/highlight.cpp b/pcbnew/highlight.cpp index 5168c74186..1a918893e1 100644 --- a/pcbnew/highlight.cpp +++ b/pcbnew/highlight.cpp @@ -75,7 +75,11 @@ void PCB_EDIT_FRAME::ListNetsAndSelect( wxCommandEvent& event ) list.Add( Line ); } - wxSingleChoiceDialog choiceDlg( this, wxEmptyString, _( "Select Net" ), list, NULL ); +#if wxCHECK_VERSION( 2, 9, 4 ) + wxSingleChoiceDialog choiceDlg( this, wxEmptyString, _( "Select Net" ), list, (void**) NULL ); +#else + wxSingleChoiceDialog choiceDlg( this, wxEmptyString, _( "Select Net" ), list, (char**) NULL ); +#endif if( (choiceDlg.ShowModal() == wxID_CANCEL) || (choiceDlg.GetSelection() == wxNOT_FOUND) ) return;