From 9ac4fc9034446b9aceaa29c7f9a7e356b0d46628 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 10 Jul 2015 16:01:45 +0200 Subject: [PATCH] Fix compilation on Windows due to lack of setenvt(). #2973 --- xs/src/libslic3r/Config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xs/src/libslic3r/Config.cpp b/xs/src/libslic3r/Config.cpp index 07a8e8637..741151c38 100644 --- a/xs/src/libslic3r/Config.cpp +++ b/xs/src/libslic3r/Config.cpp @@ -1,6 +1,10 @@ #include "Config.hpp" #include // for setenv() +#ifdef _WIN32 +#define setenv(k, v, o) _putenv_s(k, v) +#endif + namespace Slic3r { bool