summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorevoskuil <eric@voskuil.org>2014-03-27 03:00:04 (GMT)
committer evoskuil <eric@voskuil.org>2014-03-27 03:00:04 (GMT)
commit6eaf31a7b84a7c7720f4503139fc4838a2e4c5a2 (patch)
tree520fc66cdcacc5cc7ef1662daa7a3d4171a6ce1d
parent61e30ca98ffdb82239438afe29dd4efdc5c3f40b (diff)
Conditional main.
-rw-r--r--src/worker/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/worker/main.cpp b/src/worker/main.cpp
index 0495a9a..b8ab1fd 100644
--- a/src/worker/main.cpp
+++ b/src/worker/main.cpp
@@ -26,7 +26,13 @@ void interrupt_handler(int)
stopped = true;
}
+#ifdef _MSC_VER
+// This compiles for all platforms, but there is an aspect of the linux build
+// system that expects to see 'int main(...) in the source, so need both lines.
int tmain(int argc, tchar* argv[])
+#else
+int main(int argc, char* argv[])
+#endif
{
config_type config;
tpath config_path = argc < 2 ?