Fix sysdirsappend for msvc
This commit is contained in:
parent
4f21b943d4
commit
a572be54e1
|
@ -76,7 +76,7 @@ void SystemDirsAppend( SEARCH_STACK* aSearchStack )
|
||||||
// Should be full path to this program executable.
|
// Should be full path to this program executable.
|
||||||
wxString bin_dir = Pgm().GetExecutablePath();
|
wxString bin_dir = Pgm().GetExecutablePath();
|
||||||
|
|
||||||
#if defined(__MINGW32__)
|
#if defined(_WIN32)
|
||||||
// bin_dir uses unix path separator. So to parse with wxFileName
|
// bin_dir uses unix path separator. So to parse with wxFileName
|
||||||
// use windows separator, especially important for server inclusion:
|
// use windows separator, especially important for server inclusion:
|
||||||
// like: \\myserver\local_path .
|
// like: \\myserver\local_path .
|
||||||
|
@ -110,7 +110,7 @@ void SystemDirsAppend( SEARCH_STACK* aSearchStack )
|
||||||
* files do not need to be installed separately. If someone can
|
* files do not need to be installed separately. If someone can
|
||||||
* figure out a way to implement this without #ifdef, please do.
|
* figure out a way to implement this without #ifdef, please do.
|
||||||
*/
|
*/
|
||||||
#if defined(__MINGW32__)
|
#if defined(_WIN32)
|
||||||
maybe.AddPaths( wxGetenv( wxT( "PROGRAMFILES" ) ) );
|
maybe.AddPaths( wxGetenv( wxT( "PROGRAMFILES" ) ) );
|
||||||
#else
|
#else
|
||||||
maybe.AddPaths( wxGetenv( wxT( "PATH" ) ) );
|
maybe.AddPaths( wxGetenv( wxT( "PATH" ) ) );
|
||||||
|
|
Loading…
Reference in New Issue