From: Jérémie Astor Date: Wed, 1 Apr 2020 16:40:42 +0000 (+0200) Subject: :art: Fix is_reg (Windows) X-Git-Tag: nightly~1726^2~4 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=dc1f8413036deb753638be81a2cca77a96928285;p=gwion.git :art: Fix is_reg (Windows) --- diff --git a/src/compile.c b/src/compile.c index a4c85682..2794a753 100644 --- a/src/compile.c +++ b/src/compile.c @@ -76,7 +76,7 @@ ANN static int is_reg(const m_str path) { return S_ISREG(s.st_mode); } #else -ANN static bool is_reg(const m_str path) { +ANN static m_bool is_reg(const m_str path) { cionst DWORD dw = GetFileAttributes(path); return !(dw == INVALID_FILE_ATTRIBUTES || dw & FILE_ATTRIBUTE_DIRECTORY);