From a71abd89b6ed24369d468fe3f811b4c003207d95 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 18 Jun 2008 07:22:36 +0000 Subject: Ported p7zip to use dyld from NS* for module linking. git-svn-id: http://svn.telesphoreo.org/trunk@327 514c082c-b64e-11dc-b46d-3d985efe055d --- data/p7zip/dyld.diff | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 data/p7zip/dyld.diff (limited to 'data/p7zip') diff --git a/data/p7zip/dyld.diff b/data/p7zip/dyld.diff new file mode 100644 index 000000000..ef84de803 --- /dev/null +++ b/data/p7zip/dyld.diff @@ -0,0 +1,48 @@ +diff -ru p7zip_4.57/CPP/Windows/DLL.cpp p7zip_4.57+iPhone/CPP/Windows/DLL.cpp +--- p7zip_4.57/CPP/Windows/DLL.cpp 2007-11-14 21:07:44.000000000 +0000 ++++ p7zip_4.57+iPhone/CPP/Windows/DLL.cpp 2008-06-18 02:49:22.000000000 +0000 +@@ -2,7 +2,7 @@ + + #include "StdAfx.h" + +-#ifdef __APPLE_CC__ ++#if 0//__APPLE_CC__ + #include + #elif ENV_BEOS + #include +@@ -39,7 +39,7 @@ + if (_module == 0) + return true; + +-#ifdef __APPLE_CC__ ++#if 0//__APPLE_CC__ + int ret = NSUnLinkModule ((NSModule)_module, 0); + #elif ENV_BEOS + int ret = unload_add_on((image_id)_module); +@@ -57,7 +57,7 @@ + void *ptr = 0; + TRACEN((printf("local_GetProcAddress(%p,%s)\n",(void *)module,lpProcName))) + if (module) { +-#ifdef __APPLE_CC__ ++#if 0//__APPLE_CC__ + char name[MAX_PATHNAME_LEN]; + snprintf(name,sizeof(name),"_%s",lpProcName); + name[sizeof(name)-1] = 0; +@@ -117,7 +117,7 @@ + strcpy(name+len-4,".so"); + } + +-#ifdef __APPLE_CC__ ++#if 0//__APPLE_CC__ + NSObjectFileImage image; + NSObjectFileImageReturnCode nsret; + +@@ -171,7 +171,7 @@ + if (fctTest) fctTest(); + + } else { +-#ifdef __APPLE_CC__ ++#if 0//__APPLE_CC__ + NSLinkEditErrors c; + int num_err; + const char *file,*err; -- cgit v1.2.3