Fix Windows build.
[dcpomatic.git] / src / lib / cross.cc
index b33fa80ac81d3da7e235ded347a0088aabb744f8..a213436a3c3f973aafccb83e7a800aa07b417fc1 100644 (file)
@@ -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
 }