David Rose 18 years ago
parent
commit
75133269ba

+ 6 - 0
panda/src/pipeline/threadSimpleImpl.h

@@ -41,6 +41,12 @@
 // We have determined this value empirically, via test_setjmp.cxx in
 // this directory.
 #define JB_SP 9
+
+#elif defined(WIN32)
+// We have determined this value empirically, via test_setjmp.cxx in
+// this directory.
+#define JB_SP 4
+
 #endif
 
 class Thread;

+ 5 - 0
panda/src/pipeline/threadSimpleManager.cxx

@@ -20,6 +20,11 @@
 #include "threadSimpleImpl.h"
 #include "blockerSimple.h"
 
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#endif
+
 bool ThreadSimpleManager::_pointers_initialized;
 ThreadSimpleManager *ThreadSimpleManager::_global_ptr;