Parcourir la source

Define SHUT_WR as SD_SEND for MinGW32

Tatsuhiro Tsujikawa il y a 14 ans
Parent
commit
ba710a7cb4
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/a2netcompat.h

+ 6 - 0
src/a2netcompat.h

@@ -106,6 +106,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 {