Commit 72c8e21b authored by andre's avatar andre

(Very) evil fix to print ogg packet info properly on Mac OS X


git-svn-id: http://svn.annodex.net/liboggz/trunk@361 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 1baed89a
......@@ -166,10 +166,18 @@ bin_dump (unsigned char * buf, long n)
}
}
/* FIXME: on Mac OS X, off_t is 64-bits. Obviously we want a nicer
* way to do it than this, but a quick fix is a good fix */
#ifdef __APPLE__
# define PRI_off_t "q"
#else
# define PRI_off_t "l"
#endif
static int
read_packet (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data)
{
fprintf (outfile, "%08lx: serialno %010ld, "
fprintf (outfile, "%08" PRI_off_t "x: serialno %010ld, "
"granulepos %" PRId64 ", packetno %" PRId64,
hide_offset ? -1 : oggz_tell (oggz),
hide_serialno ? -1 : serialno,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment