Fix wxLog compilation with wxUSE_THREADS==0.
Define WX_DEFINE_GLOBAL_VAR macro when wxUSE_THREADS==0 too, it is used for components level hash map in any case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,10 +68,6 @@
|
|||||||
#undef wxLOG_COMPONENT
|
#undef wxLOG_COMPONENT
|
||||||
const char *wxLOG_COMPONENT = "";
|
const char *wxLOG_COMPONENT = "";
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
|
||||||
|
|
||||||
wxTLS_TYPE(wxThreadSpecificInfo) wxThreadInfoVar;
|
|
||||||
|
|
||||||
// this macro allows to define an object which will be initialized before any
|
// this macro allows to define an object which will be initialized before any
|
||||||
// other function in this file is called: this is necessary to allow log
|
// other function in this file is called: this is necessary to allow log
|
||||||
// functions to be used during static initialization (this is not advisable
|
// functions to be used during static initialization (this is not advisable
|
||||||
@@ -92,6 +88,10 @@ wxTLS_TYPE(wxThreadSpecificInfo) wxThreadInfoVar;
|
|||||||
\
|
\
|
||||||
type *gs_##name##Ptr = &Get##name()
|
type *gs_##name##Ptr = &Get##name()
|
||||||
|
|
||||||
|
#if wxUSE_THREADS
|
||||||
|
|
||||||
|
wxTLS_TYPE(wxThreadSpecificInfo) wxThreadInfoVar;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user