From 73052e16a1cc948f876ccef94b72c892f4e24fa9 Mon Sep 17 00:00:00 2001 From: Steve Russell <41975381+SteveRussell33@users.noreply.github.com> Date: Mon, 27 Feb 2023 01:54:50 +0000 Subject: [PATCH] Fix Faust engine on Windows --- src/FaustEngine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/FaustEngine.cpp b/src/FaustEngine.cpp index 3803c8c..39008b2 100644 --- a/src/FaustEngine.cpp +++ b/src/FaustEngine.cpp @@ -29,6 +29,10 @@ #include #include #include +#if defined ARCH_WIN +#include +#include +#endif #pragma GCC diagnostic push #ifndef __clang__ @@ -250,7 +254,7 @@ public: std::string temp_cache = "/tmp/VCVPrototype_" + generateSHA1(script); #elif defined ARCH_WIN char buf[MAX_PATH + 1] = {0}; - GetTempPath(sizeof(buf), buf); + GetTempPathA(sizeof(buf), buf); std::string temp_cache = std::string(buf) + "/VCVPrototype_" + generateSHA1(script); #endif std::string error_msg;