updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / boost.process-svn / mingw32.patch
blob99cad52e641791422898f5ad8809825bb70a876c
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
3 @@ -81,7 +81,7 @@
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());
10 #else
11 ::strcat_s(cmdline.get(), size, args2[i].c_str());
12 @@ -121,7 +121,7 @@
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);
19 #else
20 ::memcpy_s(envp.get(), s.size() + 1, s.c_str(), s.size() + 1);
21 @@ -327,14 +327,14 @@
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());
28 #else
29 ::strcpy_s(executable.get(), exe.size() + 1, exe.c_str());
30 #endif
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());
36 #else
37 ::strcpy_s(workdir.get(), setup.work_directory.size() + 1, setup.work_directory.c_str());