From eb36fb9280646362644e7919d1b42313bf8dfa7e Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 20 Mar 2014 14:07:19 -0400 Subject: [PATCH] Fix windows build error for missing path separator definitions. * Use wxFileName::GetPathSeparator() instead of redefining them. --- common/systemdirsappend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/systemdirsappend.cpp b/common/systemdirsappend.cpp index 65f7bfc2c0..0aefd88502 100644 --- a/common/systemdirsappend.cpp +++ b/common/systemdirsappend.cpp @@ -45,7 +45,8 @@ void SystemDirsAppend( SEARCH_STACK* aSearchStack ) // bin_dir uses unix path separator. So to parse with wxFileName // use windows separator, especially important for server inclusion: // like: \\myserver\local_path . - bin_dir.Replace( UNIX_STRING_DIR_SEP, WIN_STRING_DIR_SEP ); + bin_dir.Replace( wxFileName::GetPathSeparator( wxPATH_UNIX ), + wxFileName::GetPathSeparator( wxPATH_WIN ) ); #endif wxFileName bin_fn( bin_dir, wxEmptyString );