mirror of https://github.com/BOINC/boinc.git
parent
ead902b3ab
commit
dcc28881f7
|
@ -28,10 +28,10 @@
|
||||||
// and writes its state to disk every so often
|
// and writes its state to disk every so often
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#include "util.h"
|
||||||
#include "filesys.h"
|
#include "filesys.h"
|
||||||
#include "boinc_api.h"
|
#include "boinc_api.h"
|
||||||
|
|
||||||
|
@ -84,6 +84,9 @@ int do_checkpoint(MFILE& mf, int nchars) {
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
extern int main(int argc, char** argv);
|
||||||
|
|
||||||
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode) {
|
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode) {
|
||||||
LPWSTR command_line;
|
LPWSTR command_line;
|
||||||
LPWSTR *args;
|
LPWSTR *args;
|
||||||
|
@ -159,7 +162,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run_slow) {
|
if (run_slow) {
|
||||||
sleep(1);
|
boinc_sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boinc_time_to_checkpoint()) {
|
if (boinc_time_to_checkpoint()) {
|
||||||
|
|
Loading…
Reference in New Issue