diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-10 06:31:01 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-10 06:31:01 +0000 |
commit | 8a737d409cea505589f5b67fab49f138265a8174 (patch) | |
tree | df38e20bb1eed6abd6c3603094e109aec11fa96e /crawl-ref/source/hiscores.cc | |
parent | 70b1954c4daae8ee3f364481d0bc245a81720513 (diff) | |
download | crawl-ref-8a737d409cea505589f5b67fab49f138265a8174.tar.gz crawl-ref-8a737d409cea505589f5b67fab49f138265a8174.zip |
Another batch of msvc compile fixes.
Added wrapper implementation for opendir/readdir
Other functions left stubbed out.
It's a shame that crawl's "direct.h" conflicts with <direct.h>.
Fixed up use of AppHdr.h in a couple places (it must be included first);
changed project to use precompiled headers.
crawl now compiles cleanly but doesn't link.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3573 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index b3bfa27056..1462a37a9a 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -31,9 +31,11 @@ #include <stdlib.h> #include <stdio.h> #include <ctype.h> -#include <unistd.h> #include <algorithm> #include <memory> +#if !_MSC_VER +#include <unistd.h> +#endif #include "AppHdr.h" #include "externs.h" @@ -61,7 +63,6 @@ #include "view.h" #include "skills2.h" - #define SCORE_VERSION "0.1" #ifdef MULTIUSER @@ -1001,7 +1002,7 @@ void scorefile_entry::init() death_time = time( NULL ); // end time of game if (you.real_time != -1) - real_time = you.real_time + (death_time - you.start_time); + real_time = you.real_time + long(death_time - you.start_time); else real_time = -1; |