From bf42d20f980c60a32e976757e4d4f510ff90835e Mon Sep 17 00:00:00 2001 From: gugus Date: Sun, 2 Oct 2011 13:05:08 +0200 Subject: [PATCH] Fixed some compilation errors on windows. Note that it works on my computer, but it *might* not work on older versions of windows. --- components/files/path.hpp | 2 +- components/files/windowspath.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/files/path.hpp b/components/files/path.hpp index 0788cefb15..23c702bbb3 100644 --- a/components/files/path.hpp +++ b/components/files/path.hpp @@ -30,7 +30,7 @@ #include namespace Files { typedef LinuxPath TargetPathType; } -#elif defined(__WIN32) || defined(__WINDOWS__) +#elif defined(__WIN32) || defined(__WINDOWS__) || defined (_WINDOWS) #include namespace Files { typedef WindowsPath TargetPathType; } diff --git a/components/files/windowspath.cpp b/components/files/windowspath.cpp index f42f149c14..b971cbbbfe 100644 --- a/components/files/windowspath.cpp +++ b/components/files/windowspath.cpp @@ -5,7 +5,10 @@ #include #include -#include +#include +#include + +#pragma comment(lib, "Shlwapi.lib") namespace Files {