Files
nolambocoin_miner_neu/compat.h
w12 e0dd59f90e
Some checks are pending
Build CPU miner / build (push) Waiting to run
nolambocoin new miner
2025-01-01 20:47:22 +01:00

22 lines
334 B
C

#ifndef __COMPAT_H__
#define __COMPAT_H__
#ifdef WIN32
#include <windows.h>
#define sleep(secs) Sleep((secs) * 1000)
enum {
PRIO_PROCESS = 0,
};
static inline int setpriority(int which, int who, int prio)
{
return -!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
}
#endif /* WIN32 */
#endif /* __COMPAT_H__ */