diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-15 15:18:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-15 15:18:33 +0100 |
| commit | b2919cca15877349b26389219abaf9dbdd4d26ac (patch) | |
| tree | 0cce3b3a0a16326e7cbca95877f52536cab69d9d /src | |
| parent | 3143029e587d53390806529552fcfa020ed64dcb (diff) | |
Fix Windows build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cross.cc | 4 |
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 } |
