Fix compat layer.
This commit is contained in:
parent
a222773214
commit
3d03ea6e27
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
inline void setenv(char const *variable, char const *value, bool replace) {
|
inline void setenv(char const *variable, char const *value, char replace) {
|
||||||
if (replace || getenv(variable) == NULL || getenv(variable) == "") {
|
if (replace || getenv(variable) == NULL || getenv(variable) == "") {
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
_putenv_s(variable, "");
|
_putenv_s(variable, "");
|
||||||
|
|
Loading…
Reference in a new issue