From: Carl Hetherington Date: Mon, 15 Aug 2016 14:18:33 +0000 (+0100) Subject: Fix Windows build. X-Git-Tag: v2.9.12~6 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b2919cca15877349b26389219abaf9dbdd4d26ac Fix Windows build. --- 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 }