mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
- Autodetect FreeBSD variant - Altivec/VMX fixes for non-Mac PPC
This commit is contained in:
parent
2a669ee12a
commit
1afbd40efb
3
makefile
3
makefile
@ -83,6 +83,9 @@ endif
|
|||||||
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
||||||
TARGETOS = freebsd
|
TARGETOS = freebsd
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
|
||||||
|
TARGETOS = freebsd
|
||||||
|
endif
|
||||||
ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
|
ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
|
||||||
TARGETOS = openbsd
|
TARGETOS = openbsd
|
||||||
endif
|
endif
|
||||||
|
@ -164,6 +164,7 @@ const struct _rgbsse_statics rgbsse_statics =
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#if defined(__ALTIVEC__)
|
#if defined(__ALTIVEC__)
|
||||||
|
#include <altivec.h>
|
||||||
const struct _rgbvmx_statics rgbvmx_statics =
|
const struct _rgbvmx_statics rgbvmx_statics =
|
||||||
{
|
{
|
||||||
{ 255, 255, 255, 255, 255, 255, 255, 255 },
|
{ 255, 255, 255, 255, 255, 255, 255, 255 },
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#ifndef __RGBVMX__
|
#ifndef __RGBVMX__
|
||||||
#define __RGBVMX__
|
#define __RGBVMX__
|
||||||
|
|
||||||
#ifndef __APPLE_ALTIVEC__
|
#if defined(__ALTIVEC__)
|
||||||
#include <altivec.h>
|
#include <altivec.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user