Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 352 Bytes
#ifndef __COMPAT_H__
#define __COMPAT_H__
#ifdef WIN32
#include <windows.h>
static inline void sleep(int secs)
{
Sleep(secs * 1000);
}
enum {
PRIO_PROCESS = 0,
};
static inline int setpriority(int which, int who, int prio)
{
return -!SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
}
#endif /* WIN32 */
#endif /* __COMPAT_H__ */
Something went wrong with that request. Please try again.