]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Wed, 31 Jan 2007 20:44:44 +0000 (20:44 +0000)
committerfrohlich <frohlich>
Wed, 31 Jan 2007 20:44:44 +0000 (20:44 +0000)
src/Main/bootstrap.cxx: Olaf Flebbe: Appears to be requierd for
static linkage and pthreadswin32.

src/Main/bootstrap.cxx

index 37707ce47c1d330650bcb156b81062f0a5c425ee..f2018a678660a18de54eaba4b3bdfdab97d017ec 100644 (file)
@@ -51,6 +51,7 @@ SG_USING_STD(endl);
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #  include <float.h>
+#  include <pthread.h>
 #endif
 
 #include "fg_os.hxx"
@@ -148,6 +149,10 @@ int _bootstrap_OSInit;
 // Main entry point; catch any exceptions that have made it this far.
 int main ( int argc, char **argv ) {
 
+#ifdef PTW32_STATIC_LIB
+    // Initialise static pthread win32 lib
+    pthread_win32_process_attach_np ();
+#endif
     _bootstrap_OSInit = 0;
 
 #if defined(__linux__) && defined(__i386__)