Commit d05ad629 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed compile problem for windows (_getenv)

parent 1c72ffcb
...@@ -1186,20 +1186,17 @@ void Config::check() ...@@ -1186,20 +1186,17 @@ void Config::check()
} }
#undef PUTENV #undef PUTENV
#undef GETENV
#undef SEP #undef SEP
#if defined(_WIN32) && !defined(__GNUC__) && (__BORLANDC__ < 0x0550) #if defined(_WIN32) && !defined(__GNUC__) && (__BORLANDC__ < 0x0550)
#define PUTENV _putenv #define PUTENV _putenv
#define GETENV _getenv
#define SEP ";" #define SEP ";"
#else #else
#define PUTENV putenv #define PUTENV putenv
#define GETENV getenv
#define SEP ":" #define SEP ":"
#endif #endif
if (Config_getBool("HAVE_DOT")) if (Config_getBool("HAVE_DOT"))
{ {
char *curFontPath = GETENV("DOTFONTPATH"); char *curFontPath = getenv("DOTFONTPATH");
int l=curFontPath ? strlen(curFontPath)+1 : 0; int l=curFontPath ? strlen(curFontPath)+1 : 0;
static char *buf = 0; static char *buf = 0;
buf = (char *)realloc(buf,strlen("DOTFONTPATH=.")+l+1); buf = (char *)realloc(buf,strlen("DOTFONTPATH=.")+l+1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment