30 #ifndef CPP_COMMON_PLATFORM_H_ 31 #define CPP_COMMON_PLATFORM_H_ 39 #ifndef WIN32_LEAN_AND_MEAN 40 #define WIN32_LEAN_AND_MEAN // slimmer compile times 41 #endif // WIN32_LEAN_AND_MEAN 42 #define _WINSOCKAPI_ // stops windows.h from including winsock.h (and lets us include winsock2.h) 44 #define NOMINMAX // windows c++ pollutes the environment like any factory 68 char* env_var_cstr =
NULL;
70 _dupenv_s(&env_var_cstr,
NULL,environment_variable);
72 env_var_cstr = getenv(environment_variable);
bool get_environment_variable(std::string &str, const char *environment_variable)
GLsizei const GLchar *const * string