Permalink
Browse files

test: fix windows #include bug

Fixes a "'AF_IPX' : macro redefinition" warning when compiling test/runner.c.
  • Loading branch information...
1 parent b88f8b4 commit d796c3b6f414718c7e030046e4369060a20b4ba1 @bnoordhuis bnoordhuis committed Oct 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/runner-win.h
View
@@ -26,6 +26,7 @@
#pragma warning(disable : 4996)
+#include <winsock2.h>
#include <windows.h>
#include <stdio.h>

2 comments on commit d796c3b

It's can not solve the problem.

It brings 61 errors, and 16 warning

It's all because that in <windows.h>,the file <winsock.h> is included

<winsock.h> and <winsock2.h> have some same macro.
<winsock.h> has 'AF_IPX' , 'sockaddr" in itself

<winsock2.h> include <ws2def.h>which also has the same macro.

Member

piscisaureus replied Oct 3, 2012

Pull master again. One more fix (01337af) was needed.

Please sign in to comment.