From fbb8c7d1f646fd301d0eb68c892f6035e18dbb11 Mon Sep 17 00:00:00 2001 From: dimitri Date: Mon, 16 Sep 2002 20:34:22 +0000 Subject: Fixed compile problem for windows (_getenv) --- src/config.l | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config.l b/src/config.l index 07fde20..088c126 100644 --- a/src/config.l +++ b/src/config.l @@ -1186,20 +1186,17 @@ void Config::check() } #undef PUTENV -#undef GETENV #undef SEP #if defined(_WIN32) && !defined(__GNUC__) && (__BORLANDC__ < 0x0550) #define PUTENV _putenv -#define GETENV _getenv #define SEP ";" #else #define PUTENV putenv -#define GETENV getenv #define SEP ":" #endif if (Config_getBool("HAVE_DOT")) { - char *curFontPath = GETENV("DOTFONTPATH"); + char *curFontPath = getenv("DOTFONTPATH"); int l=curFontPath ? strlen(curFontPath)+1 : 0; static char *buf = 0; buf = (char *)realloc(buf,strlen("DOTFONTPATH=.")+l+1); -- cgit v0.12