Commit 3b4d8126f18353ea1fb91ced3523ac46b1f392b7

Authored by Stéphane Raimbault
1 parent e3fe138a

Include winsock2.h before ws2tcpip.h for VS 2005

Thanks to Petr Gladkiy
Showing 1 changed file with 2 additions and 0 deletions
src/modbus-tcp.c
... ... @@ -33,6 +33,8 @@
33 33 # ifndef WINVER
34 34 # define WINVER 0x0501
35 35 # endif
  36 +/* Already set in modbus-tcp.h but it seems order matters in VS2005 */
  37 +# include <winsock2.h>
36 38 # include <ws2tcpip.h>
37 39 # define SHUT_RDWR 2
38 40 # define close closesocket
... ...