Browse Source

Fix windows.h being included before winsock.h

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
0a1306a817
  1. 8
      ethminer/main.cpp

8
ethminer/main.cpp

@ -20,6 +20,14 @@
* Ethereum client.
*/
// Solves the problem of including windows.h before including winsock.h
// as detailed here:
// http://stackoverflow.com/questions/1372480/c-redefinition-header-files-winsock2-h
#if defined(_WIN32)
#define _WINSOCKAPI_
#include <windows.h>
#endif
#include <thread>
#include <chrono>
#include <fstream>

Loading…
Cancel
Save