mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 11:31:56 +01:00
Fix #include case for <mstcpip.h>
On native Windows, the file system is case-insensitive, so this this doesn't matter there. However, when compiling on a case-sensitive filesystem, such as when cross-compiling from a Unixoid using mingw, we have to use the case the file is supplied with, which is all lowercase.
This commit is contained in:
@@ -58,10 +58,10 @@
|
|||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
|
|
||||||
#if !defined __MINGW32__
|
#if !defined __MINGW32__
|
||||||
#include <Mstcpip.h>
|
#include <mstcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Workaround missing Mstcpip.h in mingw32 (MinGW64 provides this)
|
// Workaround missing mstcpip.h in mingw32 (MinGW64 provides this)
|
||||||
// __MINGW64_VERSION_MAJOR is only defined when using in mingw-w64
|
// __MINGW64_VERSION_MAJOR is only defined when using in mingw-w64
|
||||||
#if defined __MINGW32__ && !defined SIO_KEEPALIVE_VALS && \
|
#if defined __MINGW32__ && !defined SIO_KEEPALIVE_VALS && \
|
||||||
!defined __MINGW64_VERSION_MAJOR
|
!defined __MINGW64_VERSION_MAJOR
|
||||||
|
|||||||
Reference in New Issue
Block a user