From: Mikko Rasa Date: Sun, 17 Aug 2008 21:33:19 +0000 (+0000) Subject: Fix win32 compilation X-Git-Tag: fs-1.0.1~2 X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=170846284d4586dfa853339edfd0ca0678ff4726 Fix win32 compilation --- 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; } diff --git a/source/utils.cpp b/source/utils.cpp index a0c2486..2f7e4d7 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -82,6 +82,7 @@ Path fix_case(const Path &path) Path readlink(const Path &link) { #ifdef WIN32 + (void)link; throw Exception("No symbolic links on win32"); #else char buf[4096];