6dc3df2b822ad1135920a28522b51be705e11a76
[u/mdw/putty] / 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 #include <MacTypes.h>
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 UInt8
25 #define DWORD UInt32
26
27 #define OPTIMISE_SCROLL
28
29 /* To make it compile */
30
31 #include <stdarg.h>
32 extern int vsnprintf(char *, size_t, char const *, va_list);
33
34 extern int stricmp(char const *, char const *);
35 extern int strnicmp(char const *, char const *, size_t);