yuntong613 commented on issue #445:
URL: 
https://github.com/apache/rocketmq-client-cpp/issues/445#issuecomment-2144560562

   在源码\rocketmq-client-cpp\src\common\UtilAll.h 引入自己的头文件,比如名字叫env.h
   
   以下是自己写的env.h内容
   #include <stdlib.h>
   #ifdef WIN32
   int setenv( const char* name, const char* value, int overwrite )
   {
       int errcode = 0;
   
       if( !overwrite )
       {
           size_t envsize = 0;
           errcode = getenv_s( &envsize, NULL, 0, name );
   
           if( errcode || envsize ) return errcode;
       }
   
       return _putenv_s( name, value );
   }
   #endif
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to