Commit 2f78bfec authored by jan.koester's avatar jan.koester
Browse files

test

parent 24144a77
Loading
Loading
Loading
Loading
+2 −2
Changes for src/blogi.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static bool isDeployRequestUrl(const std::string &url) {

static std::unique_ptr<blogi::PluginApi, blogi::PluginApiDeleter>
loadDeployPluginFile(const std::filesystem::path &path) {
#ifdef Windows
#ifdef _WIN32
    HMODULE handle = LoadLibraryA(path.string().c_str());
    if (!handle) {
        std::cerr << "[deploy] failed to load " << path.string() << std::endl;
@@ -218,7 +218,7 @@ static bool handleDeployFallback(libhttppp::HttpRequest &curreq, const int tid,
    if (envDeployDir && envDeployDir[0] != '\0')
        addDir(std::filesystem::path(envDeployDir));

#ifdef Windows
#ifdef _WIN32
    addDir(std::filesystem::path("C:/Program Files/blogi/plugins"));
#else
    addDir(std::filesystem::path("/usr/local/lib/blogi/plugins"));