getenv() replacement not required
This commit is contained in:
parent
978697bf03
commit
7c90a8950a
|
@ -10,8 +10,6 @@
|
|||
|
||||
REF (Py_Main);
|
||||
|
||||
#if defined (__EMX__)
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
extern int _CRT_init (void);
|
||||
|
@ -38,17 +36,3 @@ unsigned long _DLL_InitTerm (unsigned long mod_handle, unsigned long flag)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* A version of getenv() that works from DLLs */
|
||||
extern int DosScanEnv (const char *pszName, char **ppszValue);
|
||||
|
||||
char *getenv (const char *name)
|
||||
{
|
||||
char *value;
|
||||
if (DosScanEnv (name, &value))
|
||||
return NULL;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue