diff options
Diffstat (limited to 'compat/setenv.hpp')
| -rw-r--r-- | compat/setenv.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compat/setenv.hpp b/compat/setenv.hpp new file mode 100644 index 00000000..5dff666a --- /dev/null +++ b/compat/setenv.hpp @@ -0,0 +1,13 @@ +#pragma once +#include <cstdlib> + +#ifdef _WIN32 +namespace floormat { +using std::getenv; +int setenv(const char* name, const char* value, int overwrite); +int unsetenv(const char* name); +} // namespace floormat +#else +#include <cstdlib> +namespace floormat { using std::getenv; using std::setenv; using std::unsetenv; } +#endif |
