X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Frawtime.h;h=4831645adb60f8d0ea401b5bc4486dbb10ad6d1b;hp=afa3c949a08221088fbe5965c708c6b3f6a4e294;hb=967785734be5c3fc6f75da122c2d93ebbb338271;hpb=1e54e9f4b8cd32db5c224f971207aedee8bbe3dd diff --git a/source/time/rawtime.h b/source/time/rawtime.h index afa3c94..4831645 100644 --- a/source/time/rawtime.h +++ b/source/time/rawtime.h @@ -1,24 +1,23 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2006,2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_TIME_RAWTIME_H_ #define MSP_TIME_RAWTIME_H_ #ifndef WIN32 -#include +#include #endif namespace Msp { namespace Time { -#ifdef WIN32 +#ifdef MSVC typedef __int64 RawTime; #else -typedef int64_t RawTime; +typedef long long RawTime; +#endif + +#ifndef WIN32 +// Internal conversion utilities, not intended for public use +timeval rawtime_to_timeval(RawTime); +timespec rawtime_to_timespec(RawTime); #endif } // namespace Time