forked from len0rd/rockbox
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
This commit is contained in:
parent
0ac61bffa7
commit
d7244926f5
2 changed files with 6 additions and 2 deletions
|
@ -27,6 +27,10 @@
|
|||
#define OFF_T_MAX (~((off_t)1 << (sizeof (off_t)*8 - 1)))
|
||||
#endif
|
||||
|
||||
#ifndef OFF_T_MIN
|
||||
#define OFF_T_MIN ((off_t)1 << (sizeof (off_t)*8 - 1))
|
||||
#endif
|
||||
|
||||
#define DISK_BUF_PAGE_SHIFT 15 /* 32KB cache lines */
|
||||
#define DISK_BUF_PAGE_SIZE (1 << DISK_BUF_PAGE_SHIFT)
|
||||
#define DISK_BUF_PAGE_MASK (DISK_BUF_PAGE_SIZE-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue