X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c5c9c27def1b8fa76fcec01e6c89e719ac13653..96c9640205933ad0673d5af2c96af0816c50160c:/include/wx/tls.h diff --git a/include/wx/tls.h b/include/wx/tls.h index f91368d503..4fbc287c5c 100644 --- a/include/wx/tls.h +++ b/include/wx/tls.h @@ -50,7 +50,7 @@ typedef void (*wxTlsDestructorFunction)(void*); } - #if defined(__WXMSW__) + #if defined(__WINDOWS__) #include "wx/msw/tls.h" #elif defined(__OS2__) #include "wx/os2/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