diff options
Diffstat (limited to 'include/win32netcompat.h')
-rw-r--r-- | include/win32netcompat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/win32netcompat.h b/include/win32netcompat.h new file mode 100644 index 0000000..3c716b0 --- /dev/null +++ b/include/win32netcompat.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H | ||
2 | #define LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H | ||
3 | |||
4 | #ifdef _WIN32 | ||
5 | |||
6 | #include <ws2tcpip.h> | ||
7 | |||
8 | #ifndef SHUT_RDWR | ||
9 | #define SHUT_RDWR SD_BOTH | ||
10 | #endif | ||
11 | |||
12 | #ifndef SHUT_RD | ||
13 | #define SHUT_RD SD_RECEIVE | ||
14 | #endif | ||
15 | |||
16 | #ifndef SHUT_WR | ||
17 | #define SHUT_WR SD_SEND | ||
18 | #endif | ||
19 | |||
20 | #endif | ||
21 | |||
22 | #endif | ||