Get Log and UpdaterOptions classes compiling under Win32

This commit is contained in:
Robert Knight 2011-08-22 15:50:39 +01:00
parent f4c6f1c1d7
commit 9530256732
2 changed files with 19 additions and 1 deletions

View file

@ -24,6 +24,16 @@ pid_t processId()
}
return currentProcessId;
}
#else
DWORD currentProcessId = 0;
DWORD processId()
{
if (currentProcessId == 0)
{
currentProcessId = GetCurrentProcessId();
}
return currentProcessId;
}
#endif
Log* Log::instance()

View file

@ -2,10 +2,18 @@
#include "Log.h"
#include "AnyOption/anyoption.h"
#include <cstdlib>
#include "Platform.h"
#include <cstdlib>
#include <iostream>
#ifdef PLATFORM_WINDOWS
long long atoll(const char* string)
{
return _atoi64(string);
}
#endif
UpdaterOptions::UpdaterOptions()
: mode(UpdateInstaller::Setup)
, waitPid(0)