Browse Source

Fix Faust engine on Windows

pull/73/head
Steve Russell GitHub 2 years ago
parent
commit
73052e16a1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/FaustEngine.cpp

+ 5
- 1
src/FaustEngine.cpp View File

@@ -29,6 +29,10 @@
#include <vector>
#include <algorithm>
#include <functional>
#if defined ARCH_WIN
#include <fileapi.h>
#include <windef.h>
#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;


Loading…
Cancel
Save