265
265
// Enable the use of compiler-specific thread local storage keyword, if any.
266
266
// This is used for wxTLS_XXX() macros implementation and normally should use
267
// the compiler-provided support as it's simpler and more efficient, but must
268
// not use it if wxWidgets is used in a dynamically loaded Win32 (i.e. using
269
// LoadLibrary()/GetProcAddress()) as this triggers a bug in compiler TLS
270
// support that results in crashes when any TLS variables are used. So if you
271
// are building a Win32 DLL using wxWidgets that can be loaded dynamically, set
274
// Default is 1, but set to 0 if the scenario above is applicable.
267
// the compiler-provided support as it's simpler and more efficient, but is
268
// disabled under Windows in wx/msw/chkconf.h as it can't be used if wxWidgets
269
// is used in a dynamically loaded Win32 DLL (i.e. using LoadLibrary()) under
270
// XP as this triggers a bug in compiler TLS support that results in crashes
271
// when any TLS variables are used.
273
// If you're absolutely sure that your build of wxWidgets is never going to be
274
// used in such situation, either because it's not going to be linked from any
275
// kind of plugin or because you only target Vista or later systems, you can
276
// set this to 2 to force the use of compiler TLS even under MSW.
278
// Default is 1 meaning that compiler TLS is used only if it's 100% safe.
280
// Recommended setting: 2 if you want to have maximal performance and don't
281
// care about the scenario described above.
275
282
#define wxUSE_COMPILER_TLS 1
277
284
// ----------------------------------------------------------------------------