From 7c90a8950a1c65138a5fa0a0c06bf124d7ccfa5e Mon Sep 17 00:00:00 2001 From: Andrew MacIntyre Date: Tue, 31 Dec 2002 11:20:37 +0000 Subject: getenv() replacement not required --- PC/os2emx/dllentry.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/PC/os2emx/dllentry.c b/PC/os2emx/dllentry.c index 511c3d9..ca3081d 100644 --- a/PC/os2emx/dllentry.c +++ b/PC/os2emx/dllentry.c @@ -10,8 +10,6 @@ REF (Py_Main); -#if defined (__EMX__) - #include 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; -} -- cgit v0.12