mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-04-17 11:30:50 +00:00
Get Log and UpdaterOptions classes compiling under Win32
This commit is contained in:
parent
f4c6f1c1d7
commit
9530256732
2 changed files with 19 additions and 1 deletions
10
src/Log.cpp
10
src/Log.cpp
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue