Skip to content

Commit

Permalink
Merge pull request #32 from stepas-toliautas/gcc510-compat
Browse files Browse the repository at this point in the history
Update mspms.h to be compatible with MinGW GCC <= 5.1.0
  • Loading branch information
jithinjosepkl authored May 13, 2020
2 parents 1dbbaee + 12244d3 commit 7ff6bdc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/include/mspms.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ DEFINE_GUID(
#endif

#include <WS2tcpip.h>
#if !defined(_WS2IPDEF_) && !defined(_INC_WS2IPDEF) // latter for GCC 4.9.2

typedef u_short ADDRESS_FAMILY;

typedef union _SOCKADDR_INET {
SOCKADDR_IN Ipv4;
SOCKADDR_IN6 Ipv6;
ADDRESS_FAMILY si_family;
} SOCKADDR_INET, *PSOCKADDR_INET;

#endif
#include <windows.h>


Expand All @@ -73,6 +84,15 @@ DEFINE_GUID(
#ifndef _Outptr_
#define _Outptr_
#endif
#ifndef _In_opt_
#define _In_opt_
#endif
#ifndef _Out_opt_
#define _Out_opt_
#endif
#ifndef _Outptr_opt_
#define _Outptr_opt_
#endif


#define MSPMS_MAX_NAME_LENGTH 256
Expand Down

0 comments on commit 7ff6bdc

Please sign in to comment.