From cb8ed1df371834fb7766e0b7754cdf83c474d394 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 8 Mar 2009 15:41:38 +0000 Subject: [PATCH] Fix some win32 compile errors --- source/time/timezone.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/time/timezone.cpp b/source/time/timezone.cpp index fd2487b..541514f 100644 --- a/source/time/timezone.cpp +++ b/source/time/timezone.cpp @@ -8,7 +8,12 @@ Distributed under the LGPL #include #include #include +#ifdef WIN32 +#include +#else #include +#endif +#include #include "timezone.h" #include "units.h" @@ -24,7 +29,7 @@ TimeZone get_local_timezone() TIME_ZONE_INFORMATION tzinfo; DWORD dst=GetTimeZoneInformation(&tzinfo); if(dst==TIME_ZONE_ID_INVALID) - throw SystemError("Failed to get time zone information", GetLastError()); + throw Msp::SystemError("Failed to get time zone information", GetLastError()); int offset=tzinfo.Bias; if(dst==TIME_ZONE_ID_STANDARD) -- 2.43.0