mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 18:26:16 +02:00
18 lines
274 B
C++
18 lines
274 B
C++
|
#include "environment-variables.hh"
|
||
|
|
||
|
#include "processenv.h"
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
int unsetenv(const char *name)
|
||
|
{
|
||
|
return -SetEnvironmentVariableA(name, nullptr);
|
||
|
}
|
||
|
|
||
|
int setEnv(const char * name, const char * value)
|
||
|
{
|
||
|
return -SetEnvironmentVariableA(name, value);
|
||
|
}
|
||
|
|
||
|
}
|