From 1afbd40efbeca95999754c1b801e35b792db14ff Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Wed, 24 Mar 2010 04:06:07 +0000 Subject: [PATCH] [#3792, #3793] SDL compile fixes [Christian MArillat] - Autodetect FreeBSD variant - Altivec/VMX fixes for non-Mac PPC --- makefile | 3 +++ src/emu/video/rgbutil.c | 1 + src/emu/video/rgbvmx.h | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e787814d41e..4af5a4c03e0 100644 --- a/makefile +++ b/makefile @@ -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 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 #endif