From 170846284d4586dfa853339edfd0ca0678ff4726 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 17 Aug 2008 21:33:19 +0000 Subject: [PATCH] Fix win32 compilation --- source/stat.cpp | 4 ++++ source/utils.cpp | 1 + 2 files changed, 5 insertions(+) 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]; -- 2.43.0