Unix-specific functions shouldn't be used under Windows, add "#ifdef __UNIX__"
guards around them.
Closes #14410.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71794
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/apptrait.h"
#include "wx/process.h"
#include "wx/sysopt.h"
#include "wx/apptrait.h"
#include "wx/process.h"
#include "wx/sysopt.h"
#include "wx/unix/execute.h"
#include "wx/unix/execute.h"
#include "wx/gtk/private/timer.h"
#include "wx/evtloop.h"
#include "wx/gtk/private/timer.h"
#include "wx/evtloop.h"
// subprocess routines
// ----------------------------------------------------------------------------
// subprocess routines
// ----------------------------------------------------------------------------
extern "C" {
static gboolean EndProcessDetector(GIOChannel* source, GIOCondition, void* data)
{
extern "C" {
static gboolean EndProcessDetector(GIOChannel* source, GIOCondition, void* data)
{
// ----------------------------------------------------------------------------
// wxPlatformInfo-related
// ----------------------------------------------------------------------------
// wxPlatformInfo-related
+#if wxUSE_INTL && defined(__UNIX__)
void wxGUIAppTraits::SetLocale()
{
gtk_set_locale();
void wxGUIAppTraits::SetLocale()
{
gtk_set_locale();
#if wxDEBUG_LEVEL && wxUSE_STACKWALKER
// private helper class
#if wxDEBUG_LEVEL && wxUSE_STACKWALKER
// private helper class
return wxAppTraitsBase::ShowAssertDialog(msg);
}
return wxAppTraitsBase::ShowAssertDialog(msg);
}
+#endif // __UNIX__
+
+#if defined(__UNIX__) || defined(__OS2__)
+
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(wxT("gtk.desktop"));
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
wxString de = wxSystemOptions::GetOption(wxT("gtk.desktop"));
+#endif // __UNIX__ || __OS2__
+
#ifdef __WXGTK26__
// see the hack below in wxCmdLineParser::GetUsageString().
#ifdef __WXGTK26__
// see the hack below in wxCmdLineParser::GetUsageString().
wxString
wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
wxArrayString& desc) const
wxString
wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
wxArrayString& desc) const