From: Gurusamy Sarathy Date: Mon, 23 Jun 1997 23:07:34 +0000 (+1200) Subject: win32 tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2bc71ef813f5d9e1635af64220cf742859485b38;p=p5sagit%2Fp5-mst-13.2.git win32 tweaks One of my earlier patches used the unportable MAXPATH instead of MAX_PATH. The getenv() fix produced linker warnings because of a missing declaration. This fixes both problems. p5p-msgid: 199707042150.RAA01065@aatma.engin.umich.edu --- diff --git a/win32/win32.c b/win32/win32.c index 45f9e46..8ec1f9e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -97,7 +97,7 @@ win32PerlLibPath(void) char * win32SiteLibPath(void) { - static char szPerlSiteLib[MAXPATH+1]; + static char szPerlSiteLib[MAX_PATH+1]; strcpy(szPerlSiteLib, win32PerlLibPath()); strcat(szPerlSiteLib, "\\site"); return (szPerlSiteLib); diff --git a/win32/win32.h b/win32/win32.h index f683938..8cf8b7c 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -66,8 +66,13 @@ extern char *staticlinkmodules[]; /*#define USE_WIN32_RTL_ENV */ #ifndef USE_WIN32_RTL_ENV +#include +#ifndef EXT +#include "EXTERN.h" +#endif #undef getenv #define getenv win32_getenv +EXT char *win32_getenv(const char *name); #endif #define USE_SOCKETS_AS_HANDLES