X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstat.cpp;h=1dc46db78289dce316ffb36bee60b3a9539066e2;hp=c5bfb642ab92b65376dba5f7f13e4a10eb7a0d94;hb=170846284d4586dfa853339edfd0ca0678ff4726;hpb=3160a8b4cb443d282f7ca1e9d7c5ca53be173cc4 diff --git a/source/stat.cpp b/source/stat.cpp index c5bfb64..1dc46db 100644 --- a/source/stat.cpp +++ b/source/stat.cpp @@ -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; }