Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
03793 Compiling Minor Always Mar 22, 2010, 08:55 Mar 24, 2010, 04:04
Tester Christian MArillat View Status Public Platform SDLMAME
Assigned To Resolution Fixed OS Other
Status [?] Resolved Driver
Version 0.137 Fixed in Version 0.137u1 Build PowerPC
Fixed in Git Commit Github Pull Request #
Summary 03793: Build for G4 (altivec) is broken.
Description An include is missing in src/emu/video/rgbutil.c and altivec support is wrongly tested in src/emu/video/rgbvmx.h

See the patch bellow.
Steps To Reproduce
Additional Information Index: mame-0.137/src/emu/video/rgbutil.c
===================================================================
--- mame-0.137.orig/src/emu/video/rgbutil.c 2010-03-22 09:52:04.000000000 +0100
+++ mame-0.137/src/emu/video/rgbutil.c 2010-03-22 09:53:25.000000000 +0100
@@ -164,6 +164,7 @@
 ***************************************************************************/
 
 #if defined(__ALTIVEC__)
+#include <altivec.h>
 const struct _rgbvmx_statics rgbvmx_statics =
 {
  { 255, 255, 255, 255, 255, 255, 255, 255 },
Index: mame-0.137/src/emu/video/rgbvmx.h
===================================================================
--- mame-0.137.orig/src/emu/video/rgbvmx.h 2010-03-22 09:52:47.000000000 +0100
+++ mame-0.137/src/emu/video/rgbvmx.h 2010-03-22 09:53:24.000000000 +0100
@@ -12,7 +12,7 @@
 #ifndef __RGBVMX__
 #define __RGBVMX__
 
-#ifndef __APPLE_ALTIVEC__
+#if defined(__ALTIVEC__)
 #include <altivec.h>
 #endif
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
0
There are no notes attached to this issue.