bsd compatable clearenv
This commit is contained in:
parent
180859a1ef
commit
69693b9a8e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user