#pragma once #ifdef _WIN32 #include inline void setenv(const char *variable, const char *value, char replace) { if (replace || getenv(variable) == NULL || getenv(variable) == "") { if (value == NULL) { _putenv_s(variable, ""); } else { _putenv_s(variable, value); } } } #else #include #endif