[MP3 ENCODER] new time calculation

1999-06-28 Thread Gabriel Bouvigne

I don't know if anyone reported it, but the new time calculation loop
doesn't work on win32.
sys/times.h doesn't exist under VC++, so I used the previous loop instead of
the current one.


Gabriel Bouvigne - France
[EMAIL PROTECTED]
icq: 12138873

MP3' Tech: www.mp3tech.org


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



Re: [MP3 ENCODER] new time calculation

1999-06-28 Thread \Ben \\\Jacobs\\\\

I had to fix this on the mac.  Maybe the same substitution will work on
win32 (the MSL environment on mac claims to be ansi compliant).  Try
your luck:

#ifdef MYTIMINGPATCH
#define times(t) clock() // cw/mac doesn't support times()
#define CLK_TCK CLOCKS_PER_SEC   // cw/mac doesn't provide CLK_TCK
#define tms tm   // cw/mac doesn't provide struct tms
#endif // MYTIMINGPATCH

If this does the trick, maybe it should be coded right into
timeconvert(), instead of via preprocessor directives.  Best,

-ben "jacobs" mailto:[EMAIL PROTECTED]

--
Gabriel Bouvigne wrote:
 
 I don't know if anyone reported it, but the new time calculation loop
 doesn't work on win32.
 sys/times.h doesn't exist under VC++, so I used the previous loop instead of
 the current one.
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )