summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/debug.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-03-12 22:34:54 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-03-12 23:05:31 +1000
commit831f2989aca683aedda032061a74727707f0b871 (patch)
tree13a765f62191b8884aa66656d1937375229a0f5d /libs/pbd/pbd/debug.h
parent0f8da2d4cd5129378a3323689aaa219b3d98dd81 (diff)
Revert commit 635578b3 relating to pthread debugging
This breaks the build for windows builds that don't use the pthreads_win32 library. Using the opaque pthread_t type like this is probably not a great idea. Using PBD::pthread_name is another option that I've used elsewhere that seems more useful.
Diffstat (limited to 'libs/pbd/pbd/debug.h')
-rw-r--r--libs/pbd/pbd/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/pbd/debug.h b/libs/pbd/pbd/debug.h
index fdfffda71c..f1776a254c 100644
--- a/libs/pbd/pbd/debug.h
+++ b/libs/pbd/pbd/debug.h
@@ -57,7 +57,7 @@ namespace PBD {
#define DEBUG_STR(id) __debug_str ## id
#define DEBUG_STR_APPEND(id,s) __debug_str ## id << s;
#define DEBUG_ENABLED(bits) ((bits) & PBD::debug_bits)
-#ifdef PLATFORM_WINDOWS
+#ifdef PTW32_VERSION
#define DEBUG_THREAD_SELF pthread_self().p
#else
#define DEBUG_THREAD_SELF pthread_self()