2 * macstuff.h -- Mac-specific definitions visible to the rest of PuTTY.
5 typedef void *Context; /* FIXME */
8 #include <stdio.h> /* for FILENAME_MAX */
11 char path[FILENAME_MAX];
13 #define f_open(filename, mode) ( fopen((filename).path, (mode)) )
15 /* Suspiciously similar to an ICFontRecord */
23 * On the Mac, Unicode text copied to the clipboard has U+2028 line separators.
24 * Non-Unicode text will have these converted to CR along with the rest of the
27 #define SEL_NL { 0x2028 }
30 #include <Events.h> /* Timing related goo */
32 #define GETTICKCOUNT TickCount
33 #define CURSORBLINK GetCaretTime()
34 #define TICKSPERSEC 60
36 #define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
42 #define OPTIMISE_SCROLL
45 * sk_getxdmdata() does not exist under the Mac (SGT: I have no
46 * idea whatsoever how to write it, and furthermore I'm unconvinced
47 * it's necessary), so it's a macro which always returns FALSE.
49 #define sk_getxdmdata(socket, ip, port) (0)
51 /* To make it compile */
54 extern int vsnprintf(char *, size_t, char const *, va_list);
56 extern int stricmp(char const *, char const *);
57 extern int strnicmp(char const *, char const *, size_t);