[pypy-svn] r50632 - pypy/dist/pypy/translator/c/src

xoraxax at codespeak.net xoraxax at codespeak.net
Tue Jan 15 16:39:51 CET 2008


Author: xoraxax
Date: Tue Jan 15 16:39:51 2008
New Revision: 50632

Modified:
   pypy/dist/pypy/translator/c/src/stack.h
Log:
Move an include line to try to mitigate the header mess.

Modified: pypy/dist/pypy/translator/c/src/stack.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/stack.h	(original)
+++ pypy/dist/pypy/translator/c/src/stack.h	Tue Jan 15 16:39:51 2008
@@ -6,6 +6,10 @@
 #    define MAX_STACK_SIZE (1 << 19)
 #endif
 
+/* This include must be done in any case to initialise
+ * the header dependencies early (thread -> winsock2, before windows.h) */
+#include "thread.h"
+
 void LL_stack_unwind(void);
 int LL_stack_too_big_slowpath(void);
 
@@ -28,9 +32,9 @@
 		&& LL_stack_too_big_slowpath());
 }
 
+
 #ifndef PYPY_NOT_MAIN_FILE
 #include <stdio.h>
-#include "thread.h"
 
 #ifndef PYPY_NOINLINE
 # if defined __GNUC__



More information about the Pypy-commit mailing list