[Qt-interest] Win64 declaration of Sleep()?

Robert Hairgrove evorgriahr at hispeed.ch
Fri Jan 2 11:15:42 CET 2009


In one of my Qt projects, I have this declaration since I am not 
including any Win32 headers:

#ifdef Q_OS_WIN32
extern "C" void __stdcall Sleep(quint32);
#endif

It helps to avoid some problems with timing WRT file creation under 
Windows. With Linux and Mac, I have been told it is not an issue.

How would this have to be declared on 64-bit Windows OS?

Thanks.



More information about the Qt-interest-old mailing list