2 * macstuff.h -- Mac-specific definitions visible to the rest of PuTTY.
5 typedef void *Context; /* FIXME */
17 extern FILE * f_open(struct Filename, char const *);
19 /* Suspiciously similar to an ICFontRecord */
28 * On the Mac, Unicode text copied to the clipboard has U+2028 line separators.
29 * Non-Unicode text will have these converted to CR along with the rest of the
32 #define SEL_NL { 0x2028 }
35 #include <Events.h> /* Timing related goo */
37 #define GETTICKCOUNT TickCount
38 #define CURSORBLINK GetCaretTime()
39 #define TICKSPERSEC 60
41 #define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
47 #define OPTIMISE_SCROLL
50 * sk_getxdmdata() does not exist under the Mac (SGT: I have no
51 * idea whatsoever how to write it, and furthermore I'm unconvinced
52 * it's necessary), so it's a macro which always returns NULL.
54 #define sk_getxdmdata(socket, lenp) (NULL)
56 /* To make it compile */
59 extern int vsnprintf(char *, size_t, char const *, va_list);
61 extern int stricmp(char const *, char const *);
62 extern int strnicmp(char const *, char const *, size_t);
64 #define HELPCTX(foo) I(0)
66 #define FILTER_KEY_FILES "pAgt.PPK"
68 #define CP_UTF8 CS_UTF8 /* from libcharset */