From: Mikko Rasa Date: Sun, 8 Mar 2009 15:41:38 +0000 (+0000) Subject: Fix some win32 compile errors X-Git-Tag: 1.1~5 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cb8ed1df371834fb7766e0b7754cdf83c474d394;p=libs%2Fcore.git Fix some win32 compile errors --- 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)