mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
Define CD_SECS and CD_FRAMES also on non-Linux systems. Avoid a
non-portable TRACE on non-Linux systems.
This commit is contained in:
parent
77c8b1dc2b
commit
fa8cca5e47
1 changed files with 12 additions and 5 deletions
|
@ -72,6 +72,15 @@
|
|||
#include "file.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
/* Non-Linux systems do not have linux/cdrom.h and the like, and thus
|
||||
lack the following constants. */
|
||||
|
||||
#ifndef CD_SECS
|
||||
#define CD_SECS 60 /* seconds per minute */
|
||||
#endif
|
||||
#ifndef CD_FRAMES
|
||||
#define CD_FRAMES 75 /* frames per second */
|
||||
#endif
|
||||
|
||||
static const struct iocodexs
|
||||
{
|
||||
|
@ -237,7 +246,7 @@ static int CDROM_SyncCache(int dev)
|
|||
goto end;
|
||||
}
|
||||
|
||||
TRACE("caching toc from=%d to=%d\n", hdr.cdth_trk0, hdr.cdth_trk1);
|
||||
TRACE("caching toc from=%d to=%d\n", toc->FirstTrack, toc->LastTrack );
|
||||
|
||||
toc->FirstTrack = hdr.cdth_trk0;
|
||||
toc->LastTrack = hdr.cdth_trk1;
|
||||
|
@ -246,8 +255,6 @@ static int CDROM_SyncCache(int dev)
|
|||
toc->Length[0] = tsz >> 8;
|
||||
toc->Length[1] = tsz;
|
||||
|
||||
TRACE("from=%d to=%d\n", toc->FirstTrack, toc->LastTrack);
|
||||
|
||||
for (i = toc->FirstTrack; i <= toc->LastTrack + 1; i++)
|
||||
{
|
||||
if (i == toc->LastTrack + 1)
|
||||
|
@ -285,8 +292,8 @@ static int CDROM_SyncCache(int dev)
|
|||
+ sizeof(TRACK_DATA) * (toc->LastTrack-toc->FirstTrack+2);
|
||||
toc->Length[0] = tsz >> 8;
|
||||
toc->Length[1] = tsz;
|
||||
|
||||
TRACE("caching toc from=%d to=%d\n", hdr.cdth_trk0, hdr.cdth_trk1);
|
||||
|
||||
TRACE("caching toc from=%d to=%d\n", toc->FirstTrack, toc->LastTrack );
|
||||
|
||||
for (i = toc->FirstTrack; i <= toc->LastTrack + 1; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue