Author: Matti Picus <[email protected]>
Branch: 
Changeset: r60698:b783959e50bf
Date: 2013-01-30 00:24 +0200
http://bitbucket.org/pypy/pypy/changeset/b783959e50bf/

Log:    after review (amaury)

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -731,11 +731,7 @@
             global_objects.append('%s %s = NULL;' % (typ, name))
     global_code = '\n'.join(global_objects)
 
-    if sys.platform == "win32":
-        prologue = ("#include <Python.h>\n"
-                "#include <src/thread_nt.c>\n")
-    else:
-        prologue = ("#include <Python.h>\n"
+    prologue = ("#include <Python.h>\n"
                 "#include <src/thread.c>\n")
     code = (prologue +
             struct_declaration_code +
diff --git a/rpython/translator/c/src/thread_nt.c 
b/rpython/translator/c/src/thread_nt.c
--- a/rpython/translator/c/src/thread_nt.c
+++ b/rpython/translator/c/src/thread_nt.c
@@ -13,7 +13,7 @@
 /*
  * Thread support.
  */
-#include "thread.h"
+/* In rpython, this file is pulled in by thread.c */
 
 typedef struct RPyOpaque_ThreadLock NRMUTEX, *PNRMUTEX;
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to