summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-16 00:58:13 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-16 00:58:13 +0900
commitba710a7cb4c2a1e6b75ba2a7df2ec03f44a260ab (patch)
treed932d9a2afcbc56994719eeee851215a6140dc07 /src
parentad4065ca12057f7ab45d69c3a343ac5901ebeb23 (diff)
Define SHUT_WR as SD_SEND for MinGW32
Diffstat (limited to 'src')
-rw-r--r--src/a2netcompat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/a2netcompat.h b/src/a2netcompat.h
index f19efd18..e3008708 100644
--- a/src/a2netcompat.h
+++ b/src/a2netcompat.h
@@ -107,6 +107,12 @@
#define DEFAULT_AI_FLAGS AI_ADDRCONFIG
#ifdef __MINGW32__
+# ifndef SHUT_WR
+# define SHUT_WR SD_SEND
+# endif // !SHUT_WR
+#endif // __MINGW32__
+
+#ifdef __MINGW32__
template<typename T>
class wsaapi_auto_delete {
private: