Commit 7c90a895 authored by Andrew MacIntyre's avatar Andrew MacIntyre

getenv() replacement not required

parent 978697bf
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
REF (Py_Main); REF (Py_Main);
#if defined (__EMX__)
#include <signal.h> #include <signal.h>
extern int _CRT_init (void); extern int _CRT_init (void);
...@@ -38,17 +36,3 @@ unsigned long _DLL_InitTerm (unsigned long mod_handle, unsigned long flag) ...@@ -38,17 +36,3 @@ unsigned long _DLL_InitTerm (unsigned long mod_handle, unsigned long flag)
return 0; 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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment