diff -r 2220707c5719 src/hugin1/ptbatcher/Batch.cpp --- a/src/hugin1/ptbatcher/Batch.cpp Wed Feb 28 18:36:07 2018 +0100 +++ b/src/hugin1/ptbatcher/Batch.cpp Sat Mar 03 04:16:51 2018 +0100 @@ -28,8 +28,10 @@ #include #ifdef __WXMSW__ #include +#ifdef _MSC_VER #pragma comment(lib, "PowrProf.lib") #endif +#endif BEGIN_EVENT_TABLE(Batch, wxFrame) EVT_END_PROCESS(-1, Batch::OnProcessTerminate) @@ -860,7 +862,7 @@ { bool value; bool repeat = true; - unsigned int i; + int i; while(((i=GetFirstAvailable())!=-1) && repeat) { //execute command line instructions