diff --git a/src/Limelight.h b/src/Limelight.h index 8d72989..5e2ec21 100644 --- a/src/Limelight.h +++ b/src/Limelight.h @@ -4,6 +4,8 @@ #pragma once +#include + #ifdef __cplusplus extern "C" { #endif @@ -392,7 +394,7 @@ int LiSendScrollEvent(signed char scrollClicks); // This function returns a time in milliseconds with an implementation-defined epoch. // NOTE: This will be populated from gettimeofday() if !HAVE_CLOCK_GETTIME and // populated from clock_gettime(CLOCK_MONOTONIC) if HAVE_CLOCK_GETTIME. -unsigned long long LiGetMillis(void); +uint64_t LiGetMillis(void); #ifdef __cplusplus } diff --git a/src/Misc.c b/src/Misc.c index c2da887..696b66d 100644 --- a/src/Misc.c +++ b/src/Misc.c @@ -89,6 +89,6 @@ void LiInitializeServerInformation(PSERVER_INFORMATION serverInfo) { memset(serverInfo, 0, sizeof(*serverInfo)); } -unsigned long long LiGetMillis(void) { +uint64_t LiGetMillis(void) { return PltGetMillis(); } diff --git a/src/Platform.c b/src/Platform.c index 2c13817..e312bb1 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -16,19 +16,6 @@ struct thread_context { static int running_threads = 0; -#if defined(LC_WINDOWS) -void LimelogWindows(char* Format, ...) { - va_list va; - char buffer[1024]; - - va_start(va, Format); - vsprintf(buffer, Format, va); - va_end(va); - - OutputDebugStringA(buffer); -} -#endif - #if defined(LC_WINDOWS) DWORD WINAPI ThreadProc(LPVOID lpParameter) { struct thread_context* ctx = (struct thread_context*)lpParameter; @@ -293,7 +280,7 @@ int PltWaitForEvent(PLT_EVENT* event) { #endif } -unsigned long long PltGetMillis(void) { +uint64_t PltGetMillis(void) { #if defined(LC_WINDOWS) return GetTickCount64(); #elif HAVE_CLOCK_GETTIME diff --git a/src/Platform.h b/src/Platform.h index 41686bf..1d2d823 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -2,6 +2,7 @@ #include #include +#include #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN @@ -62,4 +63,4 @@ int initializePlatform(void); void cleanupPlatform(void); -unsigned long long PltGetMillis(void); +uint64_t PltGetMillis(void); diff --git a/src/RtpReorderQueue.h b/src/RtpReorderQueue.h index 99ffac3..a24eee8 100644 --- a/src/RtpReorderQueue.h +++ b/src/RtpReorderQueue.h @@ -8,7 +8,7 @@ typedef struct _RTP_QUEUE_ENTRY { PRTP_PACKET packet; - unsigned long long queueTimeMs; + uint64_t queueTimeMs; struct _RTP_QUEUE_ENTRY* next; struct _RTP_QUEUE_ENTRY* prev;