Fix MSVC build issues

This commit is contained in:
Cameron Gutman
2018-09-25 00:56:43 -07:00
parent dd7820f100
commit 487a62f58c
5 changed files with 8 additions and 18 deletions

View File

@@ -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