Maybe better to just use 'setenv' everywhere except Windows where it doesn't exist

This commit is contained in:
K. Lange 2021-12-06 18:02:46 +09:00
parent 21b459919b
commit 993bf78933

View File

@ -97,7 +97,7 @@ static KrkClass * Environ;
#define CURRENT_CTYPE KrkInstance*
static int _setVar(KrkString * key, KrkString * val) {
#ifndef putenv
#ifndef _WIN32
return setenv(key->chars, val->chars, 1);
#else
size_t len = key->length + val->length;