mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Make adl attempt to compile only on win32 or linux since there is no support for it on onther platforms, and fix sleep() definition on win32.
This commit is contained in:
parent
8d096bd317
commit
fd23532bdb
5
adl.c
5
adl.c
@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_ADL
|
||||
#if defined(HAVE_ADL) && (defined(__linux) || defined (WIN32))
|
||||
|
||||
#include <stdio.h>
|
||||
#include <curses.h>
|
||||
@ -12,9 +12,10 @@
|
||||
#include <dlfcn.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#else /* WIN32 */
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#define sleep(x) Sleep(x)
|
||||
#endif
|
||||
#include "adl_functions.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user