[#3792, #3793] SDL compile fixes [Christian MArillat]

- Autodetect FreeBSD variant
- Altivec/VMX fixes for non-Mac PPC
This commit is contained in:
R. Belmont 2010-03-24 04:06:07 +00:00
parent 2a669ee12a
commit 1afbd40efb
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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 },

View File

@ -12,7 +12,7 @@
#ifndef __RGBVMX__
#define __RGBVMX__
#ifndef __APPLE_ALTIVEC__
#if defined(__ALTIVEC__)
#include <altivec.h>
#endif