[MPlayer-dev-eng] [PATCH] Avoid "_sleep deprecated" warning in cpuinfo.c

Torinthiel torinthiel at megapolis.pl
Wed Nov 29 23:43:21 CET 2006


On Wed, Nov 29, 2006 at 03:25:04PM -0500, Rich Felker wrote:
> > > Why the hell would anyone need WINAPI, DWORD, etc.?? Just use the
> > > proper names for these...
> > 
> > winbase.h needs them, so you can't use it directly.
> 
> typedef uint32_t DWORD;
> #define WINAPI ...?
> #include <winbase.h>

What's the difference between that and
> -#define sleep(t) _sleep(1000*t);
> +void __stdcall Sleep(unsigned);
> +#define sleep(t) Sleep(1000*t);

as in first mail? Both do things that are in system headers. If the
choice is between those two, I'd even vote for not including winbase,
less clutter then.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061129/acb16253/attachment.pgp>


More information about the MPlayer-dev-eng mailing list