mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
9b642c3931
take care of MACOSX_DEPLOYMENT_TARGET fix a minor issue where '-oc-use-gcc-libs' would be ignored
17 lines
288 B
C++
17 lines
288 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());
|
|
}
|
|
|
|
int unsetenv(const char *name) { return setenv(name, "", 1); }
|
|
#endif
|
|
}
|