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
char *
win32SiteLibPath(void)
{
- static char szPerlSiteLib[MAXPATH+1];
+ static char szPerlSiteLib[MAX_PATH+1];
strcpy(szPerlSiteLib, win32PerlLibPath());
strcat(szPerlSiteLib, "\\site");
return (szPerlSiteLib);
/*#define USE_WIN32_RTL_ENV */
#ifndef USE_WIN32_RTL_ENV
+#include <stdlib.h>
+#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