Fix compat layer.

This commit is contained in:
Zachary Hall 2023-12-01 16:03:56 -08:00
parent a222773214
commit 3d03ea6e27

View file

@ -2,7 +2,7 @@
#ifdef _WIN32
#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 (value == NULL) {
_putenv_s(variable, "");