1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 14:28:12 +00:00
sgminer/compat.h
2011-07-04 19:56:27 +10:00

30 lines
426 B
C

#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)
{
/* FIXME - actually do something */
return 0;
}
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
#endif /* WIN32 */
#endif /* __COMPAT_H__ */