Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test: fix windows #include bug

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

2 comments on commit d796c3b

@sunnyboy00

It's can not solve the problem.

It brings 61 errors, and 16 warning

It's all because that in ,the file is included

and have some same macro.
has 'AF_IPX' , 'sockaddr" in itself

include which also has the same macro.

@piscisaureus

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

Please sign in to comment.
Something went wrong with that request. Please try again.