mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
15 lines
224 B
C
15 lines
224 B
C
|
namespace {
|
||
|
#ifdef _WIN32
|
||
|
int setenv(const char *name, const char *value, int overwrite) {
|
||
|
std::string buf;
|
||
|
(void)overwrite; // TODO
|
||
|
|
||
|
buf = name;
|
||
|
buf += '=';
|
||
|
buf += value;
|
||
|
|
||
|
return putenv(buf.c_str());
|
||
|
}
|
||
|
#endif
|
||
|
}
|