]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use GetStandardCmdLineOptions() under non-Unix platforms.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Apr 2013 23:59:37 +0000 (23:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Apr 2013 23:59:37 +0000 (23:59 +0000)
The GTK+ standard options are only available under Unix.

Closes #15131.

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

src/gtk/utilsgtk.cpp

index c25b9faa0596110dd1f3bd66c99dbf3db7b358d5..fcd473847964047ee179e506f48219138faa4eb4 100644 (file)
@@ -401,6 +401,8 @@ wxString wxGUIAppTraits::GetDesktopEnvironment() const
 
 #endif // __UNIX__ || __OS2__
 
+#ifdef __UNIX__
+
 // see the hack below in wxCmdLineParser::GetUsageString().
 // TODO: replace this hack with a g_option_group_get_entries()
 //       call as soon as such function exists;
@@ -427,6 +429,7 @@ struct _GOptionGroup
   GOptionErrorFunc error_func;
 };
 
+static
 wxString wxGetNameFromGtkOptionEntry(const GOptionEntry *opt)
 {
     wxString ret;
@@ -446,8 +449,6 @@ wxString wxGetNameFromGtkOptionEntry(const GOptionEntry *opt)
     return wxT("  ") + ret;
 }
 
-#ifdef __UNIX__
-
 wxString
 wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
                                           wxArrayString& desc) const