mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
OpenBSD support in makefile/sdl.mak
Fix XBSD detection of PTR64 (uses amd64) Cosmetic change to sdlprefix.h
This commit is contained in:
parent
0328f34acb
commit
eb9ed61a68
3 changed files with 9 additions and 4 deletions
7
makefile
7
makefile
|
@ -83,7 +83,9 @@ endif
|
|||
ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
|
||||
TARGETOS = freebsd
|
||||
endif
|
||||
|
||||
ifeq ($(firstword $(filter OpenBSD,$(UNAME))),FreeBSD)
|
||||
TARGETOS = openbsd
|
||||
endif
|
||||
ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
|
||||
TARGETOS = macosx
|
||||
endif
|
||||
|
@ -97,6 +99,9 @@ ifndef PTR64
|
|||
ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64)
|
||||
PTR64 = 1
|
||||
endif
|
||||
ifeq ($(firstword $(filter amd64,$(UNAME))),amd64)
|
||||
PTR64 = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
# Autodetect BIGENDIAN
|
||||
|
|
|
@ -315,10 +315,12 @@ CFLAGS += -Upowerpc
|
|||
SUPPORTSM32M64 = 1
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring amd64,$(UNAME)))
|
||||
SUPPORTSM32M64 = 1
|
||||
endif
|
||||
ifneq (,$(findstring x86_64,$(UNAME)))
|
||||
SUPPORTSM32M64 = 1
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring i386,$(UNAME)))
|
||||
SUPPORTSM32M64 = 1
|
||||
endif
|
||||
|
|
|
@ -33,12 +33,10 @@
|
|||
#undef _XPG5
|
||||
#undef _XPG4_2
|
||||
|
||||
#if 1
|
||||
#undef _XOPEN_SOURCE
|
||||
#undef _XOPEN_VERSION
|
||||
#define _XOPEN_SOURCE
|
||||
#define _XOPEN_VERSION 4
|
||||
#endif
|
||||
|
||||
#elif defined(__irix__) || defined(__sgi)
|
||||
#define SDLMAME_IRIX 1
|
||||
|
|
Loading…
Reference in a new issue