mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-30 16:34:21 +00:00
api: fix includes after a test on mingw (cpuminer)
This commit is contained in:
parent
ae29d984c1
commit
59391e25ec
5
api.cpp
5
api.cpp
@ -10,10 +10,9 @@
|
|||||||
*/
|
*/
|
||||||
#define APIVERSION "1.1"
|
#define APIVERSION "1.1"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef WIN32
|
||||||
# define _WINSOCK_DEPRECATED_NO_WARNINGS
|
# define _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
# include <mstcpip.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -40,7 +39,7 @@
|
|||||||
#include "nvml.h"
|
#include "nvml.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef WIN32
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user