Commit 12244d3
committed
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).1 parent 1dbbaee commit 12244d3
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
0 commit comments