]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/rawtime_private.h
Add conversions from timeval/FILETIME to RawTime
[libs/core.git] / source / time / rawtime_private.h
index 566d5a61589e7fa85c6f12b090f2ab8eb78608fc..846a712f70bb48614e300555510f4ec9a191b7bf 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef MSP_TIME_RAWTIME_PRIVATE_H_
 #define MSP_TIME_RAWTIME_PRIVATE_H_
 
-#ifndef WIN32
+#ifdef WIN32
+#include <windows.h>
+#else
 #include <sys/time.h>
 #endif
 #include "rawtime.h"
 namespace Msp {
 namespace Time {
 
-#ifndef WIN32
-// Internal conversion utilities, not intended for public use
+#ifdef WIN32
+RawTime filetime_to_rawtime(const FILETIME &);
+#else
 timeval rawtime_to_timeval(RawTime);
 timespec rawtime_to_timespec(RawTime);
+RawTime timeval_to_rawtime(const timeval &);
 #endif
 
 } // namespace Time