diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2010-03-24 04:06:07 +0000 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2010-03-24 04:06:07 +0000 |
commit | 1afbd40efbeca95999754c1b801e35b792db14ff (patch) | |
tree | 7c505d7d07493a8c95ea49ec01b517f7c9960c15 | |
parent | 2a669ee12ad3803bb926af84059025d1511cf58d (diff) |
[#3792, #3793] SDL compile fixes [Christian MArillat]
- Autodetect FreeBSD variant
- Altivec/VMX fixes for non-Mac PPC
-rw-r--r-- | makefile | 3 | ||||
-rw-r--r-- | src/emu/video/rgbutil.c | 1 | ||||
-rw-r--r-- | src/emu/video/rgbvmx.h | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -83,6 +83,9 @@ endif ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD) TARGETOS = freebsd endif +ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD) +TARGETOS = freebsd +endif ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD) TARGETOS = openbsd endif diff --git a/src/emu/video/rgbutil.c b/src/emu/video/rgbutil.c index 62bb0283265..7f922dce948 100644 --- a/src/emu/video/rgbutil.c +++ b/src/emu/video/rgbutil.c @@ -164,6 +164,7 @@ const struct _rgbsse_statics rgbsse_statics = ***************************************************************************/ #if defined(__ALTIVEC__) +#include <altivec.h> const struct _rgbvmx_statics rgbvmx_statics = { { 255, 255, 255, 255, 255, 255, 255, 255 }, diff --git a/src/emu/video/rgbvmx.h b/src/emu/video/rgbvmx.h index 5cde7aab02a..74db11d7362 100644 --- a/src/emu/video/rgbvmx.h +++ b/src/emu/video/rgbvmx.h @@ -12,7 +12,7 @@ #ifndef __RGBVMX__ #define __RGBVMX__ -#ifndef __APPLE_ALTIVEC__ +#if defined(__ALTIVEC__) #include <altivec.h> #endif |