Skip to content

Commit

Permalink
Fix mkdir on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Aug 31, 2023
1 parent f7fae72 commit 7b2329e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/NeuralCapture/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ FILES_UI = \
UI_TYPE = cairo
include ../../dpf/Makefile.plugins.mk

BUILD_CXX_FLAGS += -pthread -lrt `pkg-config --cflags sndfile` `pkg-config --libs sndfile`
BUILD_CXX_FLAGS += -pthread `pkg-config --cflags sndfile` `pkg-config --libs sndfile`

# --------------------------------------------------------------
# Enable all selected plugin types
Expand Down
2 changes: 1 addition & 1 deletion plugins/NeuralCapture/PluginNeuralCapture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PluginNeuralCapture : public Plugin {
}

const char* getLicense() const noexcept override {
return "https://spdx.org/licenses/ GPL-2.0 license ";
return "https://spdx.org/licenses/GPL-2.0-or-later";
}

uint32_t getVersion() const noexcept override {
Expand Down
4 changes: 4 additions & 0 deletions plugins/NeuralCapture/profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ inline std::string Profil::get_path() {
pPath = "/data/user-files/Audio Recordings/profiles/";
#endif
if (!(stat(pPath.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode))) {
#if defined(WIN32) || defined(_WIN32)
mkdir(pPath.c_str());
#else
mkdir(pPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#endif
}

return pPath;
Expand Down

0 comments on commit 7b2329e

Please sign in to comment.