From dcc28881f79802594c0a89cc60964652faba77c4 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 4 Sep 2002 22:14:20 +0000 Subject: [PATCH] Windows fix svn path=/trunk/boinc/; revision=406 --- apps/upper_case.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/upper_case.C b/apps/upper_case.C index 890ba0b1a1..a1aa804463 100755 --- a/apps/upper_case.C +++ b/apps/upper_case.C @@ -28,10 +28,10 @@ // and writes its state to disk every so often #include -#include #include #include +#include "util.h" #include "filesys.h" #include "boinc_api.h" @@ -84,6 +84,9 @@ int do_checkpoint(MFILE& mf, int nchars) { #ifdef _WIN32 #include + +extern int main(int argc, char** argv); + int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode) { LPWSTR command_line; LPWSTR *args; @@ -159,7 +162,7 @@ int main(int argc, char **argv) { } if (run_slow) { - sleep(1); + boinc_sleep(1); } if (boinc_time_to_checkpoint()) {