replace fpos_t with long since old versions of clang and gcc seem claim

that fpos_t and long are not convertible
This commit is contained in:
Yuichi Nishiwaki
2014-01-16 20:13:13 +09:00
parent 31adf248af
commit 8709ada140
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ typedef struct {
void *cookie;
int (*read)(void *, char *, int);
int (*write)(void *, const char *, int);
fpos_t (*seek)(void *, fpos_t, int);
long (*seek)(void *, long, int);
int (*close)(void *);
} vtable;
} pic_file;
@@ -62,7 +62,7 @@ int pic_setvbuf(pic_file *, char *, int, size_t);
int pic_fflush(pic_file *);
int pic_ffill(pic_file *);
pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), fpos_t (*seek)(void *, fpos_t, int), int (*close)(void *));
pic_file *pic_funopen(void *cookie, int (*read)(void *, char *, int), int (*write)(void *, const char *, int), long (*seek)(void *, long, int), int (*close)(void *));
/* file access */
pic_file *pic_fopen(const char *, const char *);