bsd compatable clearenv

This commit is contained in:
jsorg71 2005-10-11 04:35:07 +00:00
parent 180859a1ef
commit 69693b9a8e

View File

@ -49,6 +49,12 @@
#include <stdarg.h>
#include <stdio.h>
/* for clearenv() */
#if defined(_WIN32)
#else
extern char** environ;
#endif
/*****************************************************************************/
void*
g_malloc(int size, int zero)
@ -870,7 +876,7 @@ g_clearenv(void)
{
#if defined(_WIN32)
#else
clearenv();
environ = 0;
#endif
}