summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-15 15:18:33 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-15 15:18:33 +0100
commitb2919cca15877349b26389219abaf9dbdd4d26ac (patch)
tree0cce3b3a0a16326e7cbca95877f52536cab69d9d /src
parent3143029e587d53390806529552fcfa020ed64dcb (diff)
Fix Windows build.
Diffstat (limited to 'src')
-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
}