aboutsummaryrefslogtreecommitdiffstats
path: root/src/macgui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macgui.h')
-rw-r--r--src/macgui.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/macgui.h b/src/macgui.h
index 2bb346e9d30..58081df52b4 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -57,16 +57,27 @@ typedef unsigned long Time;
57#undef init_process 57#undef init_process
58#define init_process emacs_init_process 58#define init_process emacs_init_process
59#undef INFINITY 59#undef INFINITY
60typedef struct OpaqueWindowPtr* Window;
61#else 60#else
62#include <QuickDraw.h> /* for WindowPtr */ 61#include <QuickDraw.h> /* for WindowPtr */
63#include <QDOffscreen.h> /* for GWorldPtr */ 62#include <QDOffscreen.h> /* for GWorldPtr */
64#include <Controls.h> /* for ControlHandle in xdisp.c */ 63#include <Controls.h> /* for ControlHandle in xdisp.c */
65typedef WindowPtr Window; 64#include <Gestalt.h>
66#endif 65#endif
67 66
68typedef GWorldPtr Pixmap; 67typedef GWorldPtr Pixmap;
69 68
69#if TARGET_API_MAC_CARBON
70typedef struct OpaqueWindowPtr *Window;
71#define Cursor ThemeCursor
72#define No_Cursor (-1)
73#else
74typedef WindowPtr Window;
75#define SetPortWindowPort(w) SetPort(w)
76#define Cursor CursHandle
77#define No_Cursor (0)
78extern CursPtr arrow_cursor;
79#endif
80
70#define FACE_DEFAULT (~0) 81#define FACE_DEFAULT (~0)
71 82
72 83