From b2919cca15877349b26389219abaf9dbdd4d26ac Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Aug 2016 15:18:33 +0100 Subject: [PATCH] Fix Windows build. --- src/lib/cross.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.30.2