diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5b042387c3..96c12d7aa9 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,13 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-09-23 11:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + * include/hbthread.h + % Enabled TLS for _MSC_VER compilers. + ; Tested with MSVS 2008 32-bit. Someone pls test with + older/other MSVC compilers (especially MSVC6 and WinCE mode) + to refine the default setting if needed. + 2008-09-22 22:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/thread.c ! fixed GPF when hb_threadSelf() was executed from thread without diff --git a/harbour/include/hbthread.h b/harbour/include/hbthread.h index 17dbf8a0dd..6021ae53e4 100644 --- a/harbour/include/hbthread.h +++ b/harbour/include/hbthread.h @@ -312,6 +312,8 @@ extern void hb_threadMutexUnlockAll( void ); /* enable native compiler TLS support be default for this compilers * which are known that it will work correctly */ +# if defined( _MSC_VER ) +# define HB_USE_TLS # if defined( __BORLANDC__ ) && !defined( __CODEGUARD__ ) # define HB_USE_TLS # elif defined( __GNUC__ ) && __GNUC__ >= 3 && \