aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/macgui.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h
index a6ad18fddcf..f0ae1c36397 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -97,6 +97,22 @@ struct MacFontStruct {
97typedef struct MacFontStruct MacFontStruct; 97typedef struct MacFontStruct MacFontStruct;
98typedef struct MacFontStruct XFontStruct; 98typedef struct MacFontStruct XFontStruct;
99 99
100/* Structure borrowed from Xlib.h to represent two-byte characters. */
101
102typedef struct {
103 unsigned char byte1;
104 unsigned char byte2;
105} XChar2b;
106
107#define STORE_XCHAR2B(chp, b1, b2) \
108 ((chp)->byte1 = (b1), (chp)->byte2 = (b2))
109
110#define XCHAR2B_BYTE1(chp) \
111 ((chp)->byte1)
112
113#define XCHAR2B_BYTE2(chp) \
114 ((chp)->byte2)
115
100 116
101/* Emulate X GC's by keeping color and font info in a structure. */ 117/* Emulate X GC's by keeping color and font info in a structure. */
102typedef struct _XGCValues 118typedef struct _XGCValues