]> git.saurik.com Git - wxWidgets.git/commitdiff
Moved function from mslu to utils to make the
authorRobert Roebling <robert@roebling.de>
Sun, 26 Sep 2004 20:01:35 +0000 (20:01 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 26 Sep 2004 20:01:35 +0000 (20:01 +0000)
    linker not complain about double symbols.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mslu.cpp
src/msw/utils.cpp

index 3e63d04fb25b795fa8739dd9bca36ab74d77d245..cdd08914c8123db82f0de5eb21cb4da800ba46be 100644 (file)
 
 //------------------------------------------------------------------------
 
-#if !wxUSE_UNICODE_MSLU
-
-bool wxUsingUnicowsDll()
-{ 
-    return false; 
-}
-
-#else
+#if wxUSE_UNICODE_MSLU
 
 //------------------------------------------------------------------------
 //
@@ -65,13 +58,6 @@ bool wxUsingUnicowsDll()
 #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
 //------------------------------------------------------------------------
index eb91843d616c5aef2a67f8ed3144457ea7b0479a..0e56e5d0f89f2ea060f35d3faf217e4828e8e442 100644 (file)
@@ -111,6 +111,22 @@ static const wxChar eUSERNAME[]  = wxT("UserName");
 // implementation
 // ============================================================================
 
+#if !wxUSE_UNICODE_MSLU
+
+bool wxUsingUnicowsDll()
+{ 
+    return false; 
+}
+
+#else
+
+bool wxUsingUnicowsDll()
+{
+    return (wxGetOsVersion() == wxWIN95);
+}
+
+#endif
+
 // ----------------------------------------------------------------------------
 // get host name and related
 // ----------------------------------------------------------------------------