]> git.tdb.fi Git - libs/core.git/blobdiff - source/stat.cpp
Fix win32 compilation
[libs/core.git] / source / stat.cpp
index c5bfb642ab92b65376dba5f7f13e4a10eb7a0d94..1dc46db78289dce316ffb36bee60b3a9539066e2 100644 (file)
@@ -69,9 +69,13 @@ bool is_dir(const Path &path)
 
 bool is_link(const Path &path)
 {
+#ifdef WIN32
+       (void)path;
+#else
        struct stat st;
        if(lstat(path, st)==0)
                return S_ISLNK(st.st_mode);
+#endif
        return false;
 }