]> git.tdb.fi Git - libs/core.git/commitdiff
Fix win32 compilation
authorMikko Rasa <tdb@tdb.fi>
Sun, 17 Aug 2008 21:33:19 +0000 (21:33 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 17 Aug 2008 21:33:19 +0000 (21:33 +0000)
source/stat.cpp
source/utils.cpp

index c5bfb642ab92b65376dba5f7f13e4a10eb7a0d94..1dc46db78289dce316ffb36bee60b3a9539066e2 100644 (file)
@@ -69,9 +69,13 @@ bool is_dir(const Path &path)
 
 bool is_link(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);
        struct stat st;
        if(lstat(path, st)==0)
                return S_ISLNK(st.st_mode);
+#endif
        return false;
 }
 
        return false;
 }
 
index a0c2486f17402593b2e48199fc9d689923098809..2f7e4d704f35b1ee9cebe5dc150c654c5d15ef70 100644 (file)
@@ -82,6 +82,7 @@ Path fix_case(const Path &path)
 Path readlink(const Path &link)
 {
 #ifdef WIN32
 Path readlink(const Path &link)
 {
 #ifdef WIN32
+       (void)link;
        throw Exception("No symbolic links on win32");
 #else
        char buf[4096];
        throw Exception("No symbolic links on win32");
 #else
        char buf[4096];