Browse Source

api: fix includes after a test on mingw (cpuminer)

2upstream
Tanguy Pruvot 10 years ago
parent
commit
59391e25ec
  1. 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…
Cancel
Save