Use _putenv instead of putenv because on some Windows machines putenv doesn't work properly.

This commit is contained in:
PaulEU 2014-06-05 10:00:50 +02:00
parent 2690a52fe5
commit 7b2361518c

View file

@ -23,7 +23,11 @@ namespace fc
{ {
std::string varSetting("OPENSSL_CONF="); std::string varSetting("OPENSSL_CONF=");
varSetting += _configurationFilePath.to_native_ansi_path(); varSetting += _configurationFilePath.to_native_ansi_path();
#if defined(WIN32)
_putenv((char*)varSetting.c_str());
#else
putenv((char*)varSetting.c_str()); putenv((char*)varSetting.c_str());
#endif
} }
OPENSSL_config(nullptr); OPENSSL_config(nullptr);