From d0c1d4911fbc5550b7fee56c21ee8dae6796e32a Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Tue, 29 Nov 2005 23:20:02 +0000 Subject: [PATCH] MacOS X defines git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1626 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/bothdefs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/common/bothdefs.h b/engine/common/bothdefs.h index f225b07e1..d13a6a9bc 100644 --- a/engine/common/bothdefs.h +++ b/engine/common/bothdefs.h @@ -21,6 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef __BOTHDEFS_H #define __BOTHDEFS_H +#if defined(__APPLE__) && defined(__MACH__) +#define MACOSX +#endif #if defined(__MINGW32_VERSION) || defined(__MINGW__) #define MINGW @@ -34,7 +37,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #else //#define AVAIL_OGGVORBIS - #if !defined(__CYGWIN__) && !defined(MINGW) + #if !defined(__CYGWIN__) && !defined(MINGW) && !defined(MACOSX) #define AVAIL_PNGLIB #define AVAIL_JPEGLIB #define AVAIL_ZLIB @@ -264,6 +267,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define PLATFORM "NetBSD" #elif defined(__MORPHOS__) #define PLATFORM "MorphOS" + #elif defined(MACOSX) + #define PLATFORM "MacOS X" #else #define PLATFORM "Unknown" #endif