Fix Windows build.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Aug 2016 14:18:33 +0000 (15:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Aug 2016 14:18:33 +0000 (15:18 +0100)
src/lib/cross.cc

index b33fa80ac81d3da7e235ded347a0088aabb744f8..a213436a3c3f973aafccb83e7a800aa07b417fc1 100644 (file)
@@ -400,5 +400,9 @@ start_batch_converter (boost::filesystem::path dcpomatic)
 int
 thread_id ()
 {
 int
 thread_id ()
 {
+#ifdef DCPOMATIC_WINDOWS
+       return (int) GetCurrentThreadId ();
+#else
        return (int) pthread_self ();
        return (int) pthread_self ();
+#endif
 }
 }