These two diffs fix two issues:
1. "pragma comment (lib ...)" is specific for MS toolchain, so it should
be compiled conditinally,
2. Batch::GetFirstAvailable() returns int, so loop variable i in
Batch::RunNextInBatch() should be declared as int in order to avoid
signed/unsigned comparison (and warning during compilation).


A list of frequently asked questions is available at:
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit
For more options, visit
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 <wx/stdpaths.h>
 #ifdef __WXMSW__
 #include <powrprof.h>
+#ifdef _MSC_VER
 #pragma comment(lib, "PowrProf.lib")
 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
diff -r 2220707c5719 src/hugin1/ptbatcher/BatchFrame.cpp
--- a/src/hugin1/ptbatcher/BatchFrame.cpp       Wed Feb 28 18:36:07 2018 +0100
+++ b/src/hugin1/ptbatcher/BatchFrame.cpp       Sat Mar 03 04:17:21 2018 +0100
@@ -31,7 +31,9 @@
 #include "FailedProjectsDialog.h"
 #ifdef __WXMSW__
 #include <powrprof.h>
+#ifdef _MSC_VER
 #pragma comment(lib, "PowrProf.lib")
 #if wxCHECK_VERSION(3,1,0)
 #include <wx/taskbarbutton.h>

Reply via email to