mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix mingw
This commit is contained in:
parent
53b66fd250
commit
a413d43cda
|
@ -180,7 +180,8 @@ private:
|
||||||
void SetKey(const std::string_view& pem, bool isPrivate)
|
void SetKey(const std::string_view& pem, bool isPrivate)
|
||||||
{
|
{
|
||||||
// Read PEM data via BIO buffer
|
// Read PEM data via BIO buffer
|
||||||
auto bio = BIO_new_mem_buf(pem.data(), (int)pem.size());
|
// HACK first parameter is not const on MINGW for some reason
|
||||||
|
auto bio = BIO_new_mem_buf((void *)pem.data(), (int)pem.size());
|
||||||
if (bio == nullptr)
|
if (bio == nullptr)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("BIO_new_mem_buf failed");
|
throw std::runtime_error("BIO_new_mem_buf failed");
|
||||||
|
|
Loading…
Reference in New Issue