Fix compilation error on newer MinGW versions
This commit is contained in:
parent
40d0215a91
commit
54012d23dc
2 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
#include "nmrpd.h"
|
#include "nmrpd.h"
|
||||||
|
|
||||||
#if defined(NMRPFLASH_WINDOWS)
|
#if defined(NMRPFLASH_WINDOWS)
|
||||||
|
#include <iphlpapi.h>
|
||||||
#define WPCAP
|
#define WPCAP
|
||||||
#include <pcap.h>
|
#include <pcap.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
2
nmrpd.h
2
nmrpd.h
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
# define NMRPFLASH_WINDOWS
|
# define NMRPFLASH_WINDOWS
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
# define NMRPFLASH_UNIX
|
# define NMRPFLASH_UNIX
|
||||||
# define NMRPFLASH_OSX
|
# define NMRPFLASH_OSX
|
||||||
|
|
@ -53,7 +54,6 @@
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <iphlpapi.h>
|
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue