summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-10-08 15:00:51 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2014-10-08 15:11:26 +0100
commit50ab3db0ca54a850ee77f4622e4a83c01bc3a9c1 (patch)
tree6c05c7836883c24da27d1a5878cae3588bc04543
parent2d04ac97961f6a134638425ce869ba54cf3a922c (diff)
When building 'libs/pbd/cpus.cc' (with MSVC) make sure we know what 'PTW32_VERSION' is
-rw-r--r--libs/pbd/cpus.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/cpus.cc b/libs/pbd/cpus.cc
index 48b919cd96..0f73d51027 100644
--- a/libs/pbd/cpus.cc
+++ b/libs/pbd/cpus.cc
@@ -32,6 +32,10 @@
#include "pbd/cpus.h"
+#if defined(COMPILER_MSVC) && !defined(PTW32_VERSION)
+#include <ardourext/pthread.h> // Gets us 'PTW32_VERSION'
+#endif
+
uint32_t
hardware_concurrency()
{