From 020465a4e3e54f9c07b465ece7a996510ad18fb7 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Wed, 10 Mar 2004 23:39:51 +0000 Subject: [PATCH] A couple things for the start of beos compatibility. --- zsnes/src/configure.in | 4 ++++ zsnes/src/gblhdr.h | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/zsnes/src/configure.in b/zsnes/src/configure.in index e2084f0f..d54eb541 100644 --- a/zsnes/src/configure.in +++ b/zsnes/src/configure.in @@ -32,6 +32,10 @@ case "$target" in CFLAGS="$CFLAGS -D__LINUX__" NFLAGS="$NFLAGS -D__LINUX__ -f elf -DELF" ;; + *-*-beos*) + CFLAGS="$CFLAGS -D__LINUX__ -D__BEOS__" + NFLAGS="$NFLAGS -D__LINUX__ -D__BEOS__ -f elf -DELF" + ;; *-*-*openbsd*) CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__" NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -D__OpenBSD__ -f aoutb" diff --git a/zsnes/src/gblhdr.h b/zsnes/src/gblhdr.h index a57fbc5b..c3dba666 100644 --- a/zsnes/src/gblhdr.h +++ b/zsnes/src/gblhdr.h @@ -88,15 +88,17 @@ #ifdef __LINUX__ #include "SDL.h" - #include #include +#ifndef __BEOS__ + #include #include + #include +#endif #include #include #include #include #include - #include #include #include #include @@ -106,7 +108,7 @@ #endif #ifdef __LINUX__ - #ifndef __FreeBSD__ + #if !defined(__FreeBSD__) && !defined(__BEOS__) #include #else #include