X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstat.cpp;h=1dc46db78289dce316ffb36bee60b3a9539066e2;hp=c5bfb642ab92b65376dba5f7f13e4a10eb7a0d94;hb=fa77438b62207466c48620604c8cc34931080936;hpb=1834fcf2465c77c387bc92df5529d8631abaffa5 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; }