summaryrefslogtreecommitdiffstats
path: root/addon/configgen/config_templ.l
diff options
context:
space:
mode:
Diffstat (limited to 'addon/configgen/config_templ.l')
-rw-r--r--addon/configgen/config_templ.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l
index aa1446b..69886d7 100644
--- a/addon/configgen/config_templ.l
+++ b/addon/configgen/config_templ.l
@@ -950,9 +950,13 @@ void checkConfig()
}
}
+#undef PUTENV
#if defined(_WIN32)
- if (Config::haveDotFlag) _putenv("DOTFONTPATH=.");
+#define PUTENV _putenv
+#else
+#define PUTENV putenv
#endif
+ if (Config::haveDotFlag) PUTENV("DOTFONTPATH=.");
}