mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
ast.c Win32: Workaround for MinGW header file
getenv_s should be in <stdlib.h> but it seem MinGW header lacks it.
This commit is contained in:
parent
070f2925c4
commit
4d4b6f0474
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
|
/* Workaround MinGW header implementation */
|
||||||
|
errno_t getenv_s(size_t*, char*, size_t, const char*);
|
||||||
|
#endif
|
||||||
int setenv(const char *name, const char *value, int overwrite)
|
int setenv(const char *name, const char *value, int overwrite)
|
||||||
{
|
{
|
||||||
int errcode = 0;
|
int errcode = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue