From: Julian Smart Date: Fri, 4 Jan 2002 14:18:59 +0000 (+0000) Subject: Corrected (maybe) the object.h token syntax; corrected typo in makefile.g95 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/abad53678b86a84d34079d02d8d738a25df27c3f?ds=sidebyside Corrected (maybe) the object.h token syntax; corrected typo in makefile.g95 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/msw/tmake/g95.t b/distrib/msw/tmake/g95.t index dd1f6ac7f9..9f693547d7 100644 --- a/distrib/msw/tmake/g95.t +++ b/distrib/msw/tmake/g95.t @@ -299,7 +299,7 @@ else endif #ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT)) -ARCHINCDIR=(WXDIR)/lib/msw$(INCEXT) +ARCHINCDIR=$(WXDIR)/lib/msw$(INCEXT) SETUP_H=$(ARCHINCDIR)/wx/setup.h diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index b27ec055de..be887d2a76 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -360,7 +360,7 @@ #define wxUSE_DYNLIB_CLASS 1 // experimental, don't use for now -#define wxUSE_DYNAMIC_LOADER 0 +#define wxUSE_DYNAMIC_LOADER 1 // Set to 1 to use socket classes #define wxUSE_SOCKETS 1 diff --git a/include/wx/object.h b/include/wx/object.h index 43688968ab..6b529bd31e 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -211,7 +211,7 @@ name##PluginSentinel m_pluginsentinel; wxPluginLibrary *e = (wxPluginLibrary*) wxPluginLibrary::ms_classes.Get(#name); \ if( e != 0 ) { e->RefObj(); } \ } \ - name::name##PluginSentinel::~##name##PluginSentinel() { \ + name::name##PluginSentinel::~name##PluginSentinel() { \ wxPluginLibrary *e = (wxPluginLibrary*) wxPluginLibrary::ms_classes.Get(#name); \ if( e != 0 ) { e->UnrefObj(); } \ } diff --git a/src/msw/app.cpp b/src/msw/app.cpp index ea3044497a..4bbbd7f651 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -252,9 +252,11 @@ bool wxApp::Initialize() ; #endif // Win16 +#if wxUSE_OLE // we need to initialize OLE library if ( FAILED(::OleInitialize(NULL)) ) wxLogError(_("Cannot initialize OLE")); +#endif #endif // wxUSE_OLE diff --git a/src/msw/makefile.g95 b/src/msw/makefile.g95 index 2be537ca26..f1a19ff5b9 100644 --- a/src/msw/makefile.g95 +++ b/src/msw/makefile.g95 @@ -501,7 +501,7 @@ else endif #ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT)) -ARCHINCDIR=(WXDIR)/lib/msw$(INCEXT) +ARCHINCDIR=$(WXDIR)/lib/msw$(INCEXT) SETUP_H=$(ARCHINCDIR)/wx/setup.h