More amd64 fixes to make it actually work
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 27 Sep 2006 21:31:45 +0000 (21:31 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 27 Sep 2006 21:31:45 +0000 (21:31 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@112 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/block.c
navit/src/block.h
navit/src/coord.h
navit/src/poly.c
navit/src/poly.h

index 3e77431..0c7d0f2 100644 (file)
@@ -12,14 +12,14 @@ struct file_private {
 };
 
 struct block_index_item {
-       unsigned long blocknum;
-       unsigned long blocks;
+       u32 blocknum;
+       u32 blocks;
 };
 
 struct block_index {
-       unsigned long blocks;
-        unsigned long size;
-        unsigned long next;      
+       u32 blocks;
+        u32 size;
+        u32 next;      
        struct block_index_item list[0];
 };
 
index a65fe93..ddc7426 100644 (file)
@@ -2,9 +2,9 @@
 #include "transform.h"
 
 struct block {
-       unsigned long blocks;
-       unsigned long size;
-       unsigned long next;
+       u32 blocks;
+       u32 size;
+       u32 next;
        struct coord c[2];
        int count;
 };
index 54ba4b7..550c032 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef COORD_H
 #define COORD_H
 
+#include "types.h"
+
 /*! A integer mercator coordinate */
 struct coord {
-       long x; /*!< X-Value */
-       long y; /*!< Y-Value */
+       s32 x; /*!< X-Value */
+       s32 y; /*!< Y-Value */
 };
 
 //! A double mercator coordinate
index e39ecc5..4fb8514 100644 (file)
@@ -26,9 +26,9 @@ poly_get_hdr(unsigned char **p,struct poly_hdr *poly_hdr)
        (*p)++;
        poly_hdr->order=*(*p)++;
        poly_hdr->type=*(*p)++;
-       poly_hdr->polys=*(unsigned long *)(*p); (*p)+=sizeof(unsigned long);
-       poly_hdr->count=(unsigned long *)(*p); (*p)+=poly_hdr->polys*sizeof(unsigned long);
-       poly_hdr->count_sum=*(unsigned long *)(*p); (*p)+=sizeof(unsigned long);
+       poly_hdr->polys=*(u32 *)(*p); (*p)+=sizeof(u32);
+       poly_hdr->count=(u32 *)(*p); (*p)+=poly_hdr->polys*sizeof(u32);
+       poly_hdr->count_sum=*(u32 *)(*p); (*p)+=sizeof(u32);
        return 0;
 }
 
index 8d735f5..9d9dcbf 100644 (file)
@@ -4,9 +4,9 @@ struct poly_hdr {
        char *name;
        unsigned char order;
        unsigned char type;
-       unsigned long polys;
-       unsigned long *count;
-       unsigned long count_sum;
+       u32 polys;
+       u32 *count;
+       u32 count_sum;
 };
 
 void poly_draw_block(struct block_info *blk_inf, unsigned char *p, unsigned char *end, void *data);