summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/cross.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc
index b33fa80ac..a213436a3 100644
--- a/src/lib/cross.cc
+++ b/src/lib/cross.cc
@@ -400,5 +400,9 @@ start_batch_converter (boost::filesystem::path dcpomatic)
int
thread_id ()
{
+#ifdef DCPOMATIC_WINDOWS
+ return (int) GetCurrentThreadId ();
+#else
return (int) pthread_self ();
+#endif
}