diff options
Diffstat (limited to 'src/macgui.h')
| -rw-r--r-- | src/macgui.h | 18 |
1 files 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 */ | |||
| 29 | 29 | ||
| 30 | typedef unsigned long Time; | 30 | typedef unsigned long Time; |
| 31 | 31 | ||
| 32 | #if MAC_OSX | 32 | #ifdef HAVE_CARBON |
| 33 | #undef Z | ||
| 34 | #ifdef MAC_OSX | ||
| 33 | #undef mktime | 35 | #undef mktime |
| 34 | #undef DEBUG | 36 | #undef DEBUG |
| 35 | #undef Z | ||
| 36 | #undef free | 37 | #undef free |
| 37 | #undef malloc | 38 | #undef malloc |
| 38 | #undef realloc | 39 | #undef realloc |
| @@ -44,8 +45,6 @@ typedef unsigned long Time; | |||
| 44 | #include <Carbon/Carbon.h> | 45 | #include <Carbon/Carbon.h> |
| 45 | #undef mktime | 46 | #undef mktime |
| 46 | #define mktime emacs_mktime | 47 | #define mktime emacs_mktime |
| 47 | #undef Z | ||
| 48 | #define Z (current_buffer->text->z) | ||
| 49 | #undef free | 48 | #undef free |
| 50 | #define free unexec_free | 49 | #define free unexec_free |
| 51 | #undef malloc | 50 | #undef malloc |
| @@ -59,12 +58,19 @@ typedef unsigned long Time; | |||
| 59 | #undef init_process | 58 | #undef init_process |
| 60 | #define init_process emacs_init_process | 59 | #define init_process emacs_init_process |
| 61 | #undef INFINITY | 60 | #undef INFINITY |
| 62 | #else | 61 | #else /* not MAC_OSX */ |
| 62 | #undef SIGHUP | ||
| 63 | #define OLDP2C 1 | ||
| 64 | #include <Carbon.h> | ||
| 65 | #endif /* not MAC_OSX */ | ||
| 66 | #undef Z | ||
| 67 | #define Z (current_buffer->text->z) | ||
| 68 | #else /* not HAVE_CARBON */ | ||
| 63 | #include <QuickDraw.h> /* for WindowPtr */ | 69 | #include <QuickDraw.h> /* for WindowPtr */ |
| 64 | #include <QDOffscreen.h> /* for GWorldPtr */ | 70 | #include <QDOffscreen.h> /* for GWorldPtr */ |
| 65 | #include <Windows.h> | 71 | #include <Windows.h> |
| 66 | #include <Gestalt.h> | 72 | #include <Gestalt.h> |
| 67 | #endif | 73 | #endif /* not HAVE_CARBON */ |
| 68 | 74 | ||
| 69 | typedef WindowPtr Window; | 75 | typedef WindowPtr Window; |
| 70 | typedef GWorldPtr Pixmap; | 76 | typedef GWorldPtr Pixmap; |