summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-02-23 20:02:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-23 20:02:25 +0000
commitbb9f748bb22095019ff4d8d04dff012bee79d0f0 (patch)
treeaab14ae3f134d06b3375a234d348c47598fb529b /win32
parent27f8eb19bc5491c3050bbc1019df19d90096bb3b (diff)
downloadperl-bb9f748bb22095019ff4d8d04dff012bee79d0f0.tar.gz
Abolish USE_WIN32_RTL_ENV.
p4raw-id: //depot/perl@8916
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
-rw-r--r--win32/win32.h5
-rw-r--r--win32/win32iop.h4
3 files changed, 0 insertions, 13 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ba445a488b..226ef9b7c0 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1322,8 +1322,6 @@ win32_longpath(char *path)
return path;
}
-#ifndef USE_WIN32_RTL_ENV
-
DllExport char *
win32_getenv(const char *name)
{
@@ -1425,8 +1423,6 @@ win32_putenv(const char *name)
return relval;
}
-#endif
-
static long
filetime_to_clock(PFILETIME ft)
{
diff --git a/win32/win32.h b/win32/win32.h
index 1040ef1c1a..232542c580 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -122,11 +122,6 @@ struct utsname {
#define PERL_NO_FORCE_LINK /* no need for PL_force_link_funcs */
-/* if USE_WIN32_RTL_ENV is not defined, Perl uses direct Win32 calls
- * to read the environment, bypassing the runtime's (usually broken)
- * facilities for accessing the same. See note in util.c/my_setenv(). */
-/*#define USE_WIN32_RTL_ENV */
-
/* Define USE_FIXED_OSFHANDLE to fix MSVCRT's _open_osfhandle() on W95.
It now uses some black magic to work seamlessly with the DLL CRT and
works with MSVC++ 4.0+ or GCC/Mingw32
diff --git a/win32/win32iop.h b/win32/win32iop.h
index 5629babe83..5412f5e9a3 100644
--- a/win32/win32iop.h
+++ b/win32/win32iop.h
@@ -120,10 +120,8 @@ DllExport void win32_seekdir(DIR *dirp, long loc);
DllExport void win32_rewinddir(DIR *dirp);
DllExport int win32_closedir(DIR *dirp);
-#ifndef USE_WIN32_RTL_ENV
DllExport char* win32_getenv(const char *name);
DllExport int win32_putenv(const char *name);
-#endif
DllExport unsigned win32_sleep(unsigned int);
DllExport int win32_times(struct tms *timebuf);
@@ -300,12 +298,10 @@ END_EXTERN_C
#undef crypt
#define crypt(t,s) win32_crypt(t,s)
-#ifndef USE_WIN32_RTL_ENV
#undef getenv
#define getenv win32_getenv
#undef putenv
#define putenv win32_putenv
-#endif
#endif /* WIN32IO_IS_STDIO */
#endif /* WIN32IOP_H */