diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-04 05:48:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-04 05:48:42 +0200 |
commit | 278cd98799149fa00f3278d3a7109ca6f851c265 (patch) | |
tree | 39512986886886fc9478f72d82477d2df0b2fcaf /libs/backends/jack | |
parent | efb9da770d2ff17525e4bd70d0dc313a22c6b263 (diff) |
fix compilation with mingw + pthreads
Diffstat (limited to 'libs/backends/jack')
-rw-r--r-- | libs/backends/jack/jack_audiobackend.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/backends/jack/jack_audiobackend.cc b/libs/backends/jack/jack_audiobackend.cc index d66055d6ee..e50775c23a 100644 --- a/libs/backends/jack/jack_audiobackend.cc +++ b/libs/backends/jack/jack_audiobackend.cc @@ -860,7 +860,7 @@ JACKAudioBackend::join_process_threads () bool JACKAudioBackend::in_process_thread () { -#ifdef COMPILER_MINGW +#if (defined COMPILER_MINGW && !defined PTW32_VERSION) if (_main_thread == GetCurrentThread()) { return true; } @@ -873,7 +873,7 @@ JACKAudioBackend::in_process_thread () for (std::vector<jack_native_thread_t>::const_iterator i = _jack_threads.begin (); i != _jack_threads.end(); i++) { -#ifdef COMPILER_MINGW +#if (defined COMPILER_MINGW && !defined PTW32_VERSION) if (*i == GetCurrentThread()) { return true; } @@ -917,7 +917,7 @@ JACKAudioBackend::process_thread () /* JACK doesn't do this for us when we use the wait API */ -#ifdef COMPILER_MINGW +#if (defined COMPILER_MINGW && !defined PTW32_VERSION) _main_thread = GetCurrentThread(); #else _main_thread = pthread_self (); |