Browse Source

Renamed MSYS2_PROCESS_USE_SH to MSYS_PROCESS_USE_SH

merge-requests/365/head
eidheim 10 years ago
parent
commit
1a7c0831be
  1. 2
      src/CMakeLists.txt
  2. 2
      src/process_win.cc

2
src/CMakeLists.txt

@ -22,7 +22,7 @@ if(UNIX) #Checking if compiling on Ubuntu that has a buggy menu system
endif() endif()
if(MSYS) if(MSYS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMSYS2_PROCESS_USE_SH -DJUCI_CMAKE_INSTALL_PREFIX=\\\"${CMAKE_INSTALL_PREFIX}\\\"") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMSYS_PROCESS_USE_SH -DJUCI_CMAKE_INSTALL_PREFIX=\\\"${CMAKE_INSTALL_PREFIX}\\\"")
endif() endif()
INCLUDE(FindPkgConfig) INCLUDE(FindPkgConfig)

2
src/process_win.cc

@ -93,7 +93,7 @@ process_id_type Process::open(const std::string &command, const std::string &pat
} }
char* command_cstr; char* command_cstr;
#ifdef MSYS2_PROCESS_USE_SH #ifdef MSYS_PROCESS_USE_SH
size_t pos=0; size_t pos=0;
std::string sh_command=command; std::string sh_command=command;
while((pos=sh_command.find('\"', pos))!=std::string::npos) { while((pos=sh_command.find('\"', pos))!=std::string::npos) {

Loading…
Cancel
Save