mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Introduce compat.h, for Win32 builds
This commit is contained in:
parent
b7cc9b68ad
commit
352bab2109
15
compat.h
Normal file
15
compat.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef __COMPAT_H__
|
||||||
|
#define __COMPAT_H__
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
static inline void sleep(int secs)
|
||||||
|
{
|
||||||
|
Sleep(secs * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* WIN32 */
|
||||||
|
|
||||||
|
#endif /* __COMPAT_H__ */
|
@ -20,6 +20,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <jansson.h>
|
#include <jansson.h>
|
||||||
|
#include "compat.h"
|
||||||
#include "miner.h"
|
#include "miner.h"
|
||||||
|
|
||||||
#define PROGRAM_NAME "minerd"
|
#define PROGRAM_NAME "minerd"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user