From 0439d537047532ad10692451ff3c21a4be89e633 Mon Sep 17 00:00:00 2001 From: David Deakins Date: Mon, 21 Feb 2011 04:07:13 +0000 Subject: [PATCH] Minor patch to fix support for Windows CE (use 0xFFFFFFFF in place of TLS_OUT_OF_INDEXES on Windows CE since Windows CE does not define this constant). [SVN r69115] --- src/win32/thread.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 05c7a6c9..72bf4190 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -32,7 +32,12 @@ namespace boost { tss_cleanup_implemented(); // if anyone uses TSS, we need the cleanup linked in current_thread_tls_key=TlsAlloc(); - BOOST_ASSERT(current_thread_tls_key!=TLS_OUT_OF_INDEXES); + #if defined(UNDER_CE) + // Windows CE does not define the TLS_OUT_OF_INDEXES constant. + BOOST_ASSERT(current_thread_tls_key!=0xFFFFFFFF); + #else + BOOST_ASSERT(current_thread_tls_key!=TLS_OUT_OF_INDEXES); + #endif } void cleanup_tls_key()