X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.h;h=fd6a2f75ba6092e7f72181b95b7c8fb332428fe8;hp=d23a8e82ef6376c520211c16e0828dd42ecd7b73;hb=HEAD;hpb=99b9121e2158603372c7313400283b622e6754d8 diff --git a/source/fs/stat.h b/source/fs/stat.h index d23a8e8..fd6a2f7 100644 --- a/source/fs/stat.h +++ b/source/fs/stat.h @@ -3,6 +3,7 @@ #include #include +#include #include #include "path.h" @@ -22,7 +23,7 @@ typedef uint64_t FileSize; /** Holds file information. */ -class Stat +class MSPCORE_API Stat { private: struct Private; @@ -39,7 +40,7 @@ private: FileSize alloc_size = 0; Time::TimeStamp mtime; mutable OwnerInfo owner_info; - Private *priv = 0; + Private *priv = nullptr; public: Stat() = default; @@ -73,7 +74,7 @@ inline Stat lstat(const Path &path) { return Stat::lstat(path); } /// Tests for existence of a file -bool exists(const Path &path); +MSPCORE_API bool exists(const Path &path); /// Tests whether a path refers to an existing regular file inline bool is_reg(const Path &path)