summaryrefslogtreecommitdiff
path: root/src/mwindow.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-08-08 16:56:28 -0700
committerVicent Marti <tanoku@gmail.com>2011-08-08 16:56:28 -0700
commitf6867e639a963726f381739314ea7a9d181c5aae (patch)
tree29ab8bbd4fbe1532853b2c50b806431354499335 /src/mwindow.h
parent09df3f2c0f72dbcf206cc48f508919e03671a946 (diff)
downloadlibgit2-f6867e639a963726f381739314ea7a9d181c5aae.tar.gz
Fix compilation in Windows
Diffstat (limited to 'src/mwindow.h')
-rw-r--r--src/mwindow.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mwindow.h b/src/mwindow.h
index 6c29307a7..1d4a58453 100644
--- a/src/mwindow.h
+++ b/src/mwindow.h
@@ -33,7 +33,7 @@
typedef struct git_mwindow {
struct git_mwindow *next;
git_map window_map;
- off_t offset;
+ git_off_t offset;
unsigned int last_used;
unsigned int inuse_cnt;
} git_mwindow;
@@ -41,7 +41,7 @@ typedef struct git_mwindow {
typedef struct git_mwindow_file {
git_mwindow *windows;
int fd;
- off_t size;
+ git_off_t size;
} git_mwindow_file;
typedef struct git_mwindow_ctl {
@@ -56,9 +56,9 @@ typedef struct git_mwindow_ctl {
git_vector windowfiles;
} git_mwindow_ctl;
-int git_mwindow_contains(git_mwindow *win, off_t offset);
+int git_mwindow_contains(git_mwindow *win, git_off_t offset);
void git_mwindow_free_all(git_mwindow_file *mwf);
-unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, off_t offset, int extra, unsigned int *left);
+unsigned char *git_mwindow_open(git_mwindow_file *mwf, git_mwindow **cursor, git_off_t offset, int extra, unsigned int *left);
void git_mwindow_scan_lru(git_mwindow_file *mwf, git_mwindow **lru_w, git_mwindow **lru_l);
int git_mwindow_file_register(git_mwindow_file *mwf);
void git_mwindow_close(git_mwindow **w_cursor);