1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 06:48:05 +00:00
sgminer/compat.h

26 lines
330 B
C
Raw Normal View History

2010-11-26 20:50:36 +00:00
#ifndef __COMPAT_H__
#define __COMPAT_H__
#ifdef WIN32
#include <windows.h>
static inline void sleep(int secs)
{
Sleep(secs * 1000);
}
2010-11-26 21:28:12 +00:00
enum {
PRIO_PROCESS = 0,
};
static inline int setpriority(int which, int who, int prio)
{
/* FIXME - actually do something */
return 0;
}
2010-11-26 20:50:36 +00:00
#endif /* WIN32 */
#endif /* __COMPAT_H__ */