From e76e89aabe37dce8a72165349d90d1fad8488da0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Nov 2011 19:50:01 +0000 Subject: [PATCH] Correct wxTLS_PTR definition for !wxHAS_COMPILER_TLS case. wxTLS_PTR should have type of "T*" instead of being simply usable as "T*" because of its overloaded operator->(), otherwise the code relying on it being "T*" and compiling without problems in wxHAS_COMPILER_TLS case could fail to compile without compiler TLS support. Closes #13644. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/tls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/tls.h b/include/wx/tls.h index f91368d503..996fa251dd 100644 --- a/include/wx/tls.h +++ b/include/wx/tls.h @@ -132,7 +132,7 @@ }; #define wxTLS_TYPE(T) wxTlsValue - #define wxTLS_PTR(var) (var) + #define wxTLS_PTR(var) ((var).Get()) #define wxTLS_VALUE(var) (*(var)) #endif // wxHAS_COMPILER_TLS/!wxHAS_COMPILER_TLS -- 2.45.2