Use intptr_t instead of off_t inside FcCache structure.

This avoids OS-dependencies in the cache file structure.
This commit is contained in:
Keith Packard 2006-08-30 23:09:39 -07:00
parent 76abb77f26
commit c50ea916b0
2 changed files with 1 additions and 2 deletions

View File

@ -308,7 +308,7 @@ typedef struct _FcStrBuf {
typedef struct _FcCache { typedef struct _FcCache {
int magic; /* FC_CACHE_MAGIC */ int magic; /* FC_CACHE_MAGIC */
off_t size; /* size of file */ intptr_t size; /* size of file */
intptr_t dir; /* offset to dir name */ intptr_t dir; /* offset to dir name */
intptr_t dirs; /* offset to subdirs */ intptr_t dirs; /* offset to subdirs */
int dirs_count; /* number of subdir strings */ int dirs_count; /* number of subdir strings */

View File

@ -26,7 +26,6 @@ typedef union _FcAlign {
double d; double d;
int i; int i;
intptr_t ip; intptr_t ip;
off_t o;
FcBool b; FcBool b;
void *p; void *p;
} FcAlign; } FcAlign;