dbghelp: use the available PowerPC functions

André Hentschel nerv at dawncrow.de
Fri May 28 08:48:02 CDT 2010


it makes sense and allows dbghelp to be built on powerpc

---
 dlls/dbghelp/dbghelp.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index d9a828f..0966f27 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -151,14 +151,16 @@ const char* wine_dbgstr_addr(const ADDRESS64* addr)
     }
 }
 
-extern struct cpu       cpu_i386, cpu_x86_64;
+extern struct cpu       cpu_i386, cpu_x86_64, cpu_ppc;
 
-static struct cpu*      dbghelp_cpus[] = {&cpu_i386, &cpu_x86_64, NULL};
+static struct cpu*      dbghelp_cpus[] = {&cpu_i386, &cpu_x86_64, &cpu_ppc, NULL};
 struct cpu*             dbghelp_current_cpu =
 #if defined(__i386__)
     &cpu_i386
 #elif defined(__x86_64__)
     &cpu_x86_64
+#elif defined(__powerpc__)
+    &cpu_ppc
 #else
 #error define support for your CPU
 #endif
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list