]> gitweb.factorcode.org Git - factor.git/commitdiff
fix win32 compile error
authorSlava Pestov <slava@factorcode.org>
Thu, 19 May 2005 22:33:02 +0000 (22:33 +0000)
committerSlava Pestov <slava@factorcode.org>
Thu, 19 May 2005 22:33:02 +0000 (22:33 +0000)
native/cards.c
native/factor.h

index c490c753ab9dd0cee651bf222b0533138c611867..4082fc1ca371a9cffac732837a3f1251f607b024 100644 (file)
@@ -11,7 +11,7 @@ INLINE void collect_card(CARD *ptr, CELL here)
        if(offset == 0x7f)
        {
                if(c == 0xff)
-                       critical_error("bad card",ptr);
+                       critical_error("bad card",(CELL)ptr);
                else
                        return;
        }
index 5228882741cd7cee5dfee22fc823409d1477cd2e..386b350f69fa78d3f068fdbd738b51d10daf10fe 100644 (file)
@@ -70,6 +70,8 @@ typedef signed short s16;
 typedef signed int s32;         
 typedef signed long long s64;
 
+#include <sys/param.h>
+
 #ifdef WIN32
        #include <windows.h>
 
@@ -78,7 +80,6 @@ typedef signed long long s64;
 #else
        #include <dirent.h>
        #include <sys/mman.h>
-       #include <sys/param.h>
        #include <sys/types.h>
        #include <sys/stat.h>
        #include <unistd.h>