1 --- a/process/detail/win32_ops.hpp 2011-10-30 14:50:53.400486576 +0400
2 +++ b/process/detail/win32_ops.hpp 2011-10-30 14:58:05.556022524 +0400
4 boost::shared_array<char> cmdline(new char[size]);
5 cmdline.get()[0] = '\0';
6 for (arguments_t::size_type i = 0; i < args.size(); ++i)
7 -#if defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
8 +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
9 ::strncat(cmdline.get(), args2[i].c_str(), args2[i].size());
11 ::strcat_s(cmdline.get(), size, args2[i].c_str());
15 envp.reset(new char[s.size() + 1]);
16 -#if defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
17 +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
18 ::memcpy(envp.get(), s.c_str(), s.size() + 1);
20 ::memcpy_s(envp.get(), s.size() + 1, s.c_str(), s.size() + 1);
22 boost::shared_array<char> cmdline = collection_to_win32_cmdline(args);
24 boost::scoped_array<char> executable(new char[exe.size() + 1]);
25 -#if defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
26 +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
27 ::strcpy(executable.get(), exe.c_str());
29 ::strcpy_s(executable.get(), exe.size() + 1, exe.c_str());
32 boost::scoped_array<char> workdir(new char[setup.work_directory.size() + 1]);
33 -#if defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
34 +#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(_SCL_SECURE_NO_DEPRECATE)
35 ::strcpy(workdir.get(), setup.work_directory.c_str());
37 ::strcpy_s(workdir.get(), setup.work_directory.size() + 1, setup.work_directory.c_str());