[pypy-commit] pypy default: make sure winsock2.h precedes windows.h, since windows.h imports old winsock.h
mattip
noreply at buildbot.pypy.org
Thu Apr 17 14:02:44 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r70693:81238d6d4adf
Date: 2014-04-17 15:01 +0200
http://bitbucket.org/pypy/pypy/changeset/81238d6d4adf/
Log: make sure winsock2.h precedes windows.h, since windows.h imports old
winsock.h
diff --git a/rpython/translator/c/src/thread_nt.h b/rpython/translator/c/src/thread_nt.h
--- a/rpython/translator/c/src/thread_nt.h
+++ b/rpython/translator/c/src/thread_nt.h
@@ -1,3 +1,6 @@
+#ifndef _THREAD_NT_H
+#define _THREAD_NT_H
+#include <WinSock2.h>
#include <windows.h>
/*
@@ -19,4 +22,4 @@
void RPyThreadReleaseLock(struct RPyOpaque_ThreadLock *lock);
long RPyThreadGetStackSize(void);
long RPyThreadSetStackSize(long);
-
+#endif
More information about the pypy-commit
mailing list