MacOS 9 vs MacOS 10 bit

MAC is defined for MacOS 9 but not for 10 (and it shouldn't be).  Add a MACOSX
define and use it in eat.c to pick up the joke meant for all Mac systems.
This commit is contained in:
keni
2010-01-18 02:02:45 +00:00
parent 9cd309157b
commit c367969d60
2 changed files with 6 additions and 2 deletions

View File

@@ -33,7 +33,11 @@
/*
* Mac Stuff.
*/
#ifdef macintosh /* Auto-defined symbol for MPW compilers (sc and mrc) */
#if defined(__APPLE__) && defined(__MACH__)
# define MACOSX
#endif
#ifdef macintosh /* Auto-defined symbol for MPW compilers (sc and mrc) */
# define MAC
#endif

View File

@@ -1768,7 +1768,7 @@ struct obj *otmp;
}
} else
#endif
#ifdef MAC /* KMH -- Why should Unix have all the fun? */
#if defined(MAC) || defined(MACOSX) /* KMH -- Why should Unix have all the fun? */
if (otmp->otyp == APPLE) {
pline("Delicious! Must be a Macintosh!");
} else