Skip to content

Commit

Permalink
Correct Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
David Register committed Jun 28, 2016
1 parent e4dc823 commit b79a351
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions plugins/grib_pi/src/GribUIDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,9 @@ void GRIBUICtrlBar::OnAltitude( wxCommandEvent& event )
wxMenu* amenu = new wxMenu();
amenu->Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler(GRIBUICtrlBar::OnMenuEvent), NULL, this );

/// const wxString l[] = { _T(" "), wxString::Format( _T("\u2022") ) };
#ifdef __WXMSW__
const wxString l[] = { _T(" "), wxString::Format( _T("\u2022") ) };
#endif
for( int i = 0; i<5; i++) {
if( (( m_pTimelineSet && m_bGRIBActiveFile->m_GribIdxArray.Index(Idx_WIND_VX + i) != wxNOT_FOUND
&& m_bGRIBActiveFile->m_GribIdxArray.Index(Idx_WIND_VY + i) != wxNOT_FOUND )) || i == 0 ) {
Expand Down Expand Up @@ -806,7 +808,9 @@ void GRIBUICtrlBar::OnMouseEvent( wxMouseEvent& event )
wxMenu* smenu = new wxMenu();
smenu->Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler(GRIBUICtrlBar::OnMenuEvent), NULL, this );

/// const wxString l[] = { _T(" "), wxString::Format( _T("\u2022") ) };
#ifdef __WXMSW__
const wxString l[] = { _T(" "), wxString::Format( _T("\u2022") ) };
#endif
for( int i = 0; i<5; i++) {
if( (( m_pTimelineSet && m_bGRIBActiveFile->m_GribIdxArray.Index(Idx_WIND_VX + i) != wxNOT_FOUND
&& m_bGRIBActiveFile->m_GribIdxArray.Index(Idx_WIND_VY + i) != wxNOT_FOUND )) || i == 0 ) {
Expand Down
2 changes: 2 additions & 0 deletions src/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ extern double g_TrackDeltaDistance;
extern RouteProp *pRoutePropDialog;
extern float g_GLMinSymbolLineWidth;

#if defined( __UNIX__ ) && !defined(__WXOSX__) // high resolution stopwatch for profiling
class OCPNStopWatch
{
public:
Expand All @@ -114,6 +115,7 @@ class OCPNStopWatch
private:
timespec tp;
};
#endif

#include <wx/listimpl.cpp>
WX_DEFINE_LIST ( TrackList );
Expand Down
2 changes: 1 addition & 1 deletion src/canvasMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ extern RouteManagerDialog *pRouteManagerDialog;
extern MarkInfoImpl *pMarkPropDialog;
extern RouteProp *pRoutePropDialog;
extern TrackPropDlg *pTrackPropDialog;
extern Track *g_pActiveTrack;
extern ActiveTrack *g_pActiveTrack;
extern bool g_bConfirmObjectDelete;
extern WayPointman *pWayPointMan;
extern MyConfig *pConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/routeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extern bool g_bMagneticAPB;
extern RoutePoint *pAnchorWatchPoint1;
extern RoutePoint *pAnchorWatchPoint2;

extern Track *g_pActiveTrack;
extern ActiveTrack *g_pActiveTrack;
extern RouteProp *pRoutePropDialog;
extern RouteManagerDialog *pRouteManagerDialog;
extern RoutePoint *pAnchorWatchPoint1;
Expand Down
2 changes: 1 addition & 1 deletion src/routemanagerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ extern Routeman *g_pRouteMan;
extern MyConfig *pConfig;
extern ChartCanvas *cc1;
extern ChartBase *Current_Ch;
extern Track *g_pActiveTrack;
extern ActiveTrack *g_pActiveTrack;
extern WayPointman *pWayPointMan;
extern MarkInfoImpl *pMarkPropDialog;
extern MyFrame *gFrame;
Expand Down

0 comments on commit b79a351

Please sign in to comment.