Stéphane Raimbault 15 жил өмнө
parent
commit
6e1e4e580f
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      src/modbus.h

+ 4 - 4
src/modbus.h

@@ -24,11 +24,11 @@
 #if defined(WIN32) && !defined(__CYGWIN__)
 #if defined(WIN32) && !defined(__CYGWIN__)
 #define NATIVE_WIN32
 #define NATIVE_WIN32
 #define MSG_NOSIGNAL 0
 #define MSG_NOSIGNAL 0
-#define ECONNRESET WSAECONNRESET
+#define ECONNRESET   WSAECONNRESET
 #define ECONNREFUSED WSAECONNREFUSED
 #define ECONNREFUSED WSAECONNREFUSED
-#define ETIMEDOUT WSAETIMEDOUT
-#define ENOPROTOOPT WSAENOPROTOOPT
-#define SHUT_RDWR 2
+#define ETIMEDOUT    WSAETIMEDOUT
+#define ENOPROTOOPT  WSAENOPROTOOPT
+#define SHUT_RDWR    2
 #include <winsock2.h>
 #include <winsock2.h>
 #endif /* win32 and no cygwin */
 #endif /* win32 and no cygwin */