summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/disk_buf.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-21 14:01:22 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-21 14:01:22 +0000
commitd7244926f5946a3b8ac2ef83953d0e423b2def2a (patch)
tree432afc3ff332e7ceb31090aff30edb3ba453f156 /apps/plugins/mpegplayer/disk_buf.h
parent0ac61bffa799ed4817ffd1079617ef6ac933a3f2 (diff)
downloadrockbox-d7244926f5946a3b8ac2ef83953d0e423b2def2a.tar.gz
rockbox-d7244926f5946a3b8ac2ef83953d0e423b2def2a.zip
mpegplayer: use OFF_T_MIN/MAX instead of LONG_MIN/MAX in one spot. Define OFF_T_MIN as well if not already defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26232 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/disk_buf.h')
-rw-r--r--apps/plugins/mpegplayer/disk_buf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/disk_buf.h b/apps/plugins/mpegplayer/disk_buf.h
index 5be88f195a..bc76ab6dc3 100644
--- a/apps/plugins/mpegplayer/disk_buf.h
+++ b/apps/plugins/mpegplayer/disk_buf.h
@@ -27,6 +27,10 @@
27#define OFF_T_MAX (~((off_t)1 << (sizeof (off_t)*8 - 1))) 27#define OFF_T_MAX (~((off_t)1 << (sizeof (off_t)*8 - 1)))
28#endif 28#endif
29 29
30#ifndef OFF_T_MIN
31#define OFF_T_MIN ((off_t)1 << (sizeof (off_t)*8 - 1))
32#endif
33
30#define DISK_BUF_PAGE_SHIFT 15 /* 32KB cache lines */ 34#define DISK_BUF_PAGE_SHIFT 15 /* 32KB cache lines */
31#define DISK_BUF_PAGE_SIZE (1 << DISK_BUF_PAGE_SHIFT) 35#define DISK_BUF_PAGE_SIZE (1 << DISK_BUF_PAGE_SHIFT)
32#define DISK_BUF_PAGE_MASK (DISK_BUF_PAGE_SIZE-1) 36#define DISK_BUF_PAGE_MASK (DISK_BUF_PAGE_SIZE-1)