fix win32 compile error

cvs
Slava Pestov 2005-05-19 22:33:02 +00:00
parent c44f311de2
commit d353b92de8
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ INLINE void collect_card(CARD *ptr, CELL here)
if(offset == 0x7f) if(offset == 0x7f)
{ {
if(c == 0xff) if(c == 0xff)
critical_error("bad card",ptr); critical_error("bad card",(CELL)ptr);
else else
return; return;
} }

View File

@ -70,6 +70,8 @@ typedef signed short s16;
typedef signed int s32; typedef signed int s32;
typedef signed long long s64; typedef signed long long s64;
#include <sys/param.h>
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>
@ -78,7 +80,6 @@ typedef signed long long s64;
#else #else
#include <dirent.h> #include <dirent.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>