From 24972bf6f1d75a2fc2987460eea09f858c26306e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Fri, 4 Mar 2005 11:09:09 +0000 Subject: [PATCH] [!MAC_OSX && HAVE_CARBON]: Include Carbon.h. --- src/macgui.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/macgui.h b/src/macgui.h index cb157bb8c25..6a961318b76 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -29,10 +29,11 @@ typedef char * XrmDatabase; /* fix later */ typedef unsigned long Time; -#if MAC_OSX +#ifdef HAVE_CARBON +#undef Z +#ifdef MAC_OSX #undef mktime #undef DEBUG -#undef Z #undef free #undef malloc #undef realloc @@ -44,8 +45,6 @@ typedef unsigned long Time; #include #undef mktime #define mktime emacs_mktime -#undef Z -#define Z (current_buffer->text->z) #undef free #define free unexec_free #undef malloc @@ -59,12 +58,19 @@ typedef unsigned long Time; #undef init_process #define init_process emacs_init_process #undef INFINITY -#else +#else /* not MAC_OSX */ +#undef SIGHUP +#define OLDP2C 1 +#include +#endif /* not MAC_OSX */ +#undef Z +#define Z (current_buffer->text->z) +#else /* not HAVE_CARBON */ #include /* for WindowPtr */ #include /* for GWorldPtr */ #include #include -#endif +#endif /* not HAVE_CARBON */ typedef WindowPtr Window; typedef GWorldPtr Pixmap; -- 2.39.2