[MPlayer-dev-eng] [PATCH] Avoid "_sleep deprecated" warning in cpuinfo.c
Rich Felker
dalias at aerifal.cx
Wed Nov 29 20:03:33 CET 2006
On Wed, Nov 29, 2006 at 01:49:18PM +0100, Reimar Döffinger wrote:
> Hello,
> On Wed, Nov 29, 2006 at 08:22:06PM +0800, Zuxy Meng wrote:
> > 2006/11/29, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> > >On Wed, Nov 29, 2006 at 07:33:49PM +0800, Zuxy Meng wrote:
> > >> Index: TOOLS/cpuinfo.c
> > >> ===================================================================
> > >> --- TOOLS/cpuinfo.c ???????? 21370??
> > >> +++ TOOLS/cpuinfo.c ????????????
> > >> @@ -19,7 +19,8 @@
> > >> #endif
> > >> #ifdef __MINGW32__
> > >> #define MISSING_USLEEP
> > >> -#define sleep(t) _sleep(1000*t);
> > >> +#include <windows.h>
> > >> +#define sleep(t) Sleep(1000*t);
> > >
> > >Why is winbase.h not enough? Or is that one of the headers you're not
> > >supposed to use?
> >
> > winbase.h lacks definitions for WINAPI, DWORD, etc.
>
> Sorry for the noise then. Since this variant is similar to
> what osdep/timer-win2.c does, IMO it is okay to apply.
Why the hell would anyone need WINAPI, DWORD, etc.?? Just use the
proper names for these...
Rich
More information about the MPlayer-dev-eng
mailing list