]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - mac/macstuff.h
Tentative merge of ben-mac-port (only dead for three years!) into the trunk.
[PuTTY.git] / mac / macstuff.h
1 /*
2  * macstuff.h -- Mac-specific definitions visible to the rest of PuTTY.
3  */
4
5 typedef void *Context; /* FIXME */
6
7 /*
8  * On the Mac, Unicode text copied to the clipboard has U+2028 line separators.
9  * Non-Unicode text will have these converted to CR along with the rest of the
10  * content.
11  */
12 #define SEL_NL { 0x2028 }
13
14
15 #include <Events.h> /* Timing related goo */
16
17 #define GETTICKCOUNT TickCount
18 #define CURSORBLINK GetCaretTime()
19 #define TICKSPERSEC 60
20
21 #define DEFAULT_CODEPAGE 0             /* FIXME: no idea how to do this */
22
23 #define WCHAR wchar_t
24 #define BYTE unsigned char
25
26 /* To make it compile */
27
28 #include <stdarg.h>
29 extern int vsnprintf(char *, size_t, char const *, va_list);