Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mspms.h to be compatible with MinGW GCC <= 5.1.0
On MinGW (TDM) build of 32-bit GCC 5.1.0, which is currently bundled with Code::Blocks 17.12 IDE, ws2ipdef.h header is missing, therefore ADDRESS_FAMILY and _SOCKADDR_INET types end up not defined in msmps.h. This also affects earlier 32-bit GCC versions (tested on TDM 4.9.2). Provided patch introduces missing typedefs when required. Additionally, the following SAL annotations are needed for MinGW GCC <= 5.1.0: _Outptr_opt_ (always), _Out_opt_, _In_opt_ (if including mspms.h before mpi.h). NOTE: this is backward-compatibility patch, it is not required for newer MinGW GCC builds (tested on MinGW-w64 8.1.0, both 32- and 64-bit).
- Loading branch information