]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/rawtime.h
Select RawTime definition based on compiler, not platform
[libs/core.git] / source / time / rawtime.h
index afa3c949a08221088fbe5965c708c6b3f6a4e294..fb6a383fb4b4575a51bead802150bb394c85ace4 100644 (file)
@@ -9,16 +9,22 @@ Distributed under the LGPL
 #define MSP_TIME_RAWTIME_H_
 
 #ifndef WIN32
-#include <stdint.h>
+#include <sys/time.h>
 #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