Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
747B

  1. diff --git a/glib/glib-init.c b/glib/glib-init.c
  2. index e7002e6..044b562 100644
  3. --- a/glib/glib-init.c
  4. +++ b/glib/glib-init.c
  5. @@ -236,7 +236,7 @@ glib_init (void)
  6. g_quark_init ();
  7. }
  8. -#if defined (G_OS_WIN32)
  9. +#if 0
  10. BOOL WINAPI DllMain (HINSTANCE hinstDLL,
  11. DWORD fdwReason,
  12. @@ -276,6 +276,8 @@ DllMain (HINSTANCE hinstDLL,
  13. #elif defined (G_HAS_CONSTRUCTORS)
  14. +HMODULE glib_dll;
  15. +
  16. #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
  17. #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(glib_init_ctor)
  18. #endif
  19. @@ -284,6 +286,11 @@ G_DEFINE_CONSTRUCTOR(glib_init_ctor)
  20. static void
  21. glib_init_ctor (void)
  22. {
  23. + glib_dll = NULL;
  24. + g_clock_win32_init ();
  25. +#ifdef THREADS_WIN32
  26. + g_thread_win32_init ();
  27. +#endif
  28. glib_init ();
  29. }