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:
okuoku 2017-12-13 20:33:41 +09:00
parent 070f2925c4
commit 4d4b6f0474

View file

@ -10,6 +10,10 @@
#endif
#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 errcode = 0;