OpenBSD support in makefile/sdl.mak

Fix XBSD detection of PTR64 (uses amd64)
Cosmetic change to sdlprefix.h
This commit is contained in:
Couriersud 2010-01-20 01:18:35 +00:00
parent 0328f34acb
commit eb9ed61a68
3 changed files with 9 additions and 4 deletions

View file

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

View file

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

View file

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