]> granicus.if.org Git - python/commitdiff
- workaround to make 1.6 build under MSVC 5.0. hopefully,
authorFredrik Lundh <fredrik@pythonware.com>
Thu, 29 Jun 2000 17:25:30 +0000 (17:25 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Thu, 29 Jun 2000 17:25:30 +0000 (17:25 +0000)
  trent (who broke it in the first place ;-) will come up
  with a cleaner solution.

Python/thread_nt.h

index 9e82a9408f2d4f09ef145efb7bd5595044286acc..fb04f830ee845652fe6b032c2c323858f9287879 100644 (file)
@@ -182,7 +182,11 @@ static void PyThread__init_thread(void)
  */
 int PyThread_start_new_thread(void (*func)(void *), void *arg)
 {
+#if _MSC_VER >= 1200
        INT_PTR rv;
+#else
+       unsigned long rv;
+#endif
        int success = 0;
 
        dprintf(("%ld: PyThread_start_new_thread called\n", PyThread_get_thread_ident()));