Ticket #11657: vx_program_options.patch

File vx_program_options.patch, 943 bytes (added by Brian Kuhl <brian.kuhl@…>, 7 years ago)
  • boost_1_59_0

    old new  
    5454#if defined(__MWERKS__)
    5555#include <crtl.h>
    5656#else
    57 #if !defined(_WIN32) || defined(__COMO_VERSION__)
     57#if defined(__VXWORKS__)
     58extern const char** environ;
     59#else
     60#if !defined(_WIN32) || defined(__COMO_VERSION__)
    5861extern char** environ;
    5962#endif
    6063#endif
    6164#endif
     65#endif
    6266
    6367using namespace std;
    6468
     
    190194                      const function1<std::string, std::string>& name_mapper)
    191195    {
    192196        parsed_options result(&desc);
    193        
     197#ifdef __VXWORKS__       
     198        for(environment_iterator i((char**)environ), e; i != e; ++i) {
     199#else
    194200        for(environment_iterator i(environ), e; i != e; ++i) {
     201#endif         
    195202            string option_name = name_mapper(i->first);
    196203
    197204            if (!option_name.empty()) {