From 58b805606b180422f001bf8dd95cb16ba3fc7d84 Mon Sep 17 00:00:00 2001 From: krangelov Date: Tue, 16 Nov 2021 08:33:50 +0100 Subject: [PATCH] correct mode for pgf_boot_ngf on WIN32 --- src/runtime/c/pgf/pgf.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/pgf.cxx b/src/runtime/c/pgf/pgf.cxx index e91f165d4..eefdfffca 100644 --- a/src/runtime/c/pgf/pgf.cxx +++ b/src/runtime/c/pgf/pgf.cxx @@ -1,6 +1,9 @@ #include #include #include +#ifdef WIN32 +#include +#endif #include "data.h" #include "reader.h" @@ -85,7 +88,7 @@ PgfDB *pgf_boot_ngf(const char* pgf_path, const char* ngf_path, #ifndef _WIN32 S_IRUSR | S_IWUSR #else - 0 + _S_IREAD | _S_IWRITE #endif );