Changeset View
Changeset View
Standalone View
Standalone View
src/compat/setenv.h
- This file was added.
#ifndef HAVE_DECL_SETENV | |||||
#define HAVE_DECL_SETENV | |||||
#if defined(WIN32) | |||||
#include <stdlib.h> | |||||
deadalnixUnsubmitted Not Done Inline Actionsdeadalnix: #include <cstdlib> | |||||
int setenv(const char *name, const char *value, int overwrite) { | |||||
return _putenv_s(name, value); | |||||
deadalnixUnsubmitted Not Done Inline ActionsThis is not the exact behavior, but it'll do for now. deadalnix: This is not the exact behavior, but it'll do for now. | |||||
} | |||||
#endif | |||||
#endif // HAVE_DECL_SETENV | |||||
No newline at end of file |