Ticket #11657: vx_program_options.patch
File vx_program_options.patch, 943 bytes (added by , 7 years ago) |
---|
-
boost_1_59_0
old new 54 54 #if defined(__MWERKS__) 55 55 #include <crtl.h> 56 56 #else 57 #if !defined(_WIN32) || defined(__COMO_VERSION__) 57 #if defined(__VXWORKS__) 58 extern const char** environ; 59 #else 60 #if !defined(_WIN32) || defined(__COMO_VERSION__) 58 61 extern char** environ; 59 62 #endif 60 63 #endif 61 64 #endif 65 #endif 62 66 63 67 using namespace std; 64 68 … … 190 194 const function1<std::string, std::string>& name_mapper) 191 195 { 192 196 parsed_options result(&desc); 193 197 #ifdef __VXWORKS__ 198 for(environment_iterator i((char**)environ), e; i != e; ++i) { 199 #else 194 200 for(environment_iterator i(environ), e; i != e; ++i) { 201 #endif 195 202 string option_name = name_mapper(i->first); 196 203 197 204 if (!option_name.empty()) {