Support XDM-AUTHORIZATION-1 for connecting to local X servers. If
[u/mdw/putty] / mac / macstuff.h
CommitLineData
d082ac49 1/*
2 * macstuff.h -- Mac-specific definitions visible to the rest of PuTTY.
3 */
4
5typedef 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
2beb0fb0 14#include <MacTypes.h>
d082ac49 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
2beb0fb0 24#define BYTE UInt8
25#define DWORD UInt32
d082ac49 26
37d2a505 27#define OPTIMISE_SCROLL
28
2f92b717 29/*
30 * sk_getxdmdata() does not exist under the Mac (SGT: I have no
31 * idea whatsoever how to write it, and furthermore I'm unconvinced
32 * it's necessary), so it's a macro which always returns FALSE.
33 */
34#define sk_getxdmdata(socket, ip, port) (0)
35
d082ac49 36/* To make it compile */
37
38#include <stdarg.h>
39extern int vsnprintf(char *, size_t, char const *, va_list);
2beb0fb0 40
41extern int stricmp(char const *, char const *);
42extern int strnicmp(char const *, char const *, size_t);