From: Robert Roebling Date: Sun, 26 Sep 2004 18:13:18 +0000 (+0000) Subject: Trying hard to make things compile. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b057f88ab8d0d448e094204802c9033fad271ccc Trying hard to make things compile. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/mslu.h b/include/wx/msw/mslu.h index 1cdc0b3337..af0a0d5eb6 100644 --- a/include/wx/msw/mslu.h +++ b/include/wx/msw/mslu.h @@ -16,16 +16,11 @@ #include "wx/utils.h" #include "wx/wxchar.h" -#if !wxUSE_UNICODE_MSLU -inline bool wxUsingUnicowsDll() { return false; } -#else - -// Returns true if we are running under Unicode emulation in Win9x environment. -// Workaround hacks take effect only if this condition is met -inline bool wxUsingUnicowsDll() -{ - return (wxGetOsVersion() == wxWIN95); -} +//------------------------------------------------------------------------ + +WXDLLEXPORT bool wxUsingUnicowsDll(); + +#if wxUSE_UNICODE_MSLU //------------------------------------------------------------------------ // Wrongly implemented functions from unicows.dll diff --git a/src/msw/mslu.cpp b/src/msw/mslu.cpp index b77c2e507a..3e63d04fb2 100644 --- a/src/msw/mslu.cpp +++ b/src/msw/mslu.cpp @@ -25,7 +25,16 @@ #include "wx/defs.h" #endif -#if wxUSE_UNICODE_MSLU +//------------------------------------------------------------------------ + +#if !wxUSE_UNICODE_MSLU + +bool wxUsingUnicowsDll() +{ + return false; +} + +#else //------------------------------------------------------------------------ // @@ -56,6 +65,13 @@ #undef GetOpenFileNameW #undef GetSaveFileNameW +// Returns true if we are running under Unicode emulation in Win9x environment. +// Workaround hacks take effect only if this condition is met +bool wxUsingUnicowsDll() +{ + return (wxGetOsVersion() == wxWIN95); +} + //------------------------------------------------------------------------ // Wrongly implemented functions from unicows.dll //------------------------------------------------------------------------