summaryrefslogtreecommitdiffhomepage
path: root/compat/setenv.hpp
blob: 1fc8486cd75d84b6271dc5cd5da3e394272c57ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ::setenv; using ::unsetenv; }
#endif