Alexandre Julliard : winecrt0: Disable the delay import destructor on Mac OS, it cannot be made to work.

Alexandre Julliard julliard at winehq.org
Thu Apr 2 10:42:40 CDT 2009


Module: wine
Branch: master
Commit: b2d35c3620be73ca662e73fed49a280b405d1f1c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b2d35c3620be73ca662e73fed49a280b405d1f1c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Apr  1 18:13:42 2009 +0200

winecrt0: Disable the delay import destructor on Mac OS, it cannot be made to work.

---

 dlls/winecrt0/delay_load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winecrt0/delay_load.c b/dlls/winecrt0/delay_load.c
index 5926770..ac257ba 100644
--- a/dlls/winecrt0/delay_load.c
+++ b/dlls/winecrt0/delay_load.c
@@ -52,7 +52,7 @@ FARPROC WINAPI DECLSPEC_HIDDEN __wine_spec_delay_load( unsigned int id )
     return proc;
 }
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__APPLE__)  /* we can't support destructors properly on Mac OS */
 static void free_delay_imports(void) __attribute__((destructor));
 static void free_delay_imports(void)
 {




More information about the wine-cvs mailing list