Orb/Doxygen/src/portable.cpp
changeset 4 468f4c8d3d5b
parent 0 42188c7ea2d9
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
   177 
   177 
   178 static char **last_environ;
   178 static char **last_environ;
   179 
   179 
   180 void portable_setenv(const char *name,const char *value)
   180 void portable_setenv(const char *name,const char *value)
   181 {
   181 {
       
   182     if (value==0) value="";
   182 #if defined(_WIN32) && !defined(__CYGWIN__)
   183 #if defined(_WIN32) && !defined(__CYGWIN__)
   183     SetEnvironmentVariable(name,value);
   184     SetEnvironmentVariable(name,value);
   184 #else
   185 #else
   185     register char **ep = 0;
   186     register char **ep = 0;
   186     register size_t size;
   187     register size_t size;