Second work-in-progress MacTCP commit. We can now open a connection, but
[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
d082ac49 29/* To make it compile */
30
31#include <stdarg.h>
32extern int vsnprintf(char *, size_t, char const *, va_list);
2beb0fb0 33
34extern int stricmp(char const *, char const *);
35extern int strnicmp(char const *, char const *, size_t);