Commits

mattip committed b783959

after review (amaury)

  • Participants
  • Parent commits d6b5957

Comments (0)

Files changed (2)

pypy/module/cpyext/api.py

             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 +

rpython/translator/c/src/thread_nt.c

 /*
  * Thread support.
  */
-#include "thread.h"
+/* In rpython, this file is pulled in by thread.c */
 
 typedef struct RPyOpaque_ThreadLock NRMUTEX, *PNRMUTEX;