summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
commit5f3d8499c05e9eb512b72d296073041ac4da6f4d (patch)
tree0653bda058f25d9420dd6ddcaf4edc28781a8aa4 /src/portable.cpp
parenta0924f7d469a42ab962763ce34ea5fabc73da9d7 (diff)
downloadDoxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.zip
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.gz
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.bz2
Release-1.5.8-20090129
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 7bbe33f..03d5366 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -180,7 +180,7 @@ static char **last_environ;
void portable_setenv(const char *name,const char *value)
{
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
SetEnvironmentVariable(name,value);
#else
register char **ep = 0;
@@ -259,7 +259,7 @@ void portable_setenv(const char *name,const char *value)
void portable_unsetenv(const char *variable)
{
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
SetEnvironmentVariable(variable,0);
#else
/* Some systems don't have unsetenv(), so we do it ourselves */