summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-07 07:58:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-07 08:09:44 +0200
commit086dd0cd3ac2bbdd0660333c5466610c09781507 (patch)
tree37214fdb01461c497ad3506d37d257720ab66aee
parent6bd4fbe269bf0b0629daff1093372e0537b24186 (diff)
Fix Linux build
-rw-r--r--facetracknoir/main.cpp2
-rw-r--r--facetracknoir/process_detector.cpp2
-rw-r--r--facetracknoir/process_detector.h2
-rw-r--r--opentrack/thread.hpp4
4 files changed, 6 insertions, 4 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index fea76b30..c92f6980 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -30,8 +30,8 @@ static void add_program_library_path()
}
}
}
-#endif
}
+#endif
int main(int argc, char** argv)
{
diff --git a/facetracknoir/process_detector.cpp b/facetracknoir/process_detector.cpp
index 902ab2ec..237d350d 100644
--- a/facetracknoir/process_detector.cpp
+++ b/facetracknoir/process_detector.cpp
@@ -61,7 +61,7 @@ void BrowseButton::browse()
twi->setText(filename);
}
-process_detector::add_row(QString exe_name, QString profile)
+int process_detector::add_row(QString exe_name, QString profile)
{
int i = ui.tableWidget->rowCount();
ui.tableWidget->insertRow(i);
diff --git a/facetracknoir/process_detector.h b/facetracknoir/process_detector.h
index 2333ecc6..3cebd422 100644
--- a/facetracknoir/process_detector.h
+++ b/facetracknoir/process_detector.h
@@ -88,6 +88,8 @@ public:
{
return false;
}
+ bool should_stop() { return false; }
+
};
#endif
diff --git a/opentrack/thread.hpp b/opentrack/thread.hpp
index f4e15c4e..b1db9158 100644
--- a/opentrack/thread.hpp
+++ b/opentrack/thread.hpp
@@ -31,7 +31,7 @@ private:
#else
class Affinity {
public:
- Affinity() {}
+ Affinity(int core = CORE_WORK) {}
~Affinity() {}
-}
+};
#endif