X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/76347f46fb70138ad34af07b2ab00625600931f1..1ddda1ca78c0458141b45197544597c566184b6f:/macosx/osx.h diff --git a/macosx/osx.h b/macosx/osx.h new file mode 100644 index 00000000..165539fb --- /dev/null +++ b/macosx/osx.h @@ -0,0 +1,34 @@ +#ifndef PUTTY_OSX_H +#define PUTTY_OSX_H + +/* + * Cocoa defines `FontSpec' itself, so we must change its name. + * (Arrgh.) + */ +#define FontSpec FontSpec_OSX_Proof + +/* + * Define the various compatibility symbols to make uxpty.c compile + * correctly on OS X. + */ +#define BSD_PTYS +#define OMIT_UTMP +#define HAVE_NO_SETRESUID +#define NOT_X_WINDOWS + +/* + * OS X is largely just Unix, so we can include most of this + * unchanged. + */ +#include "unix.h" + +/* + * Functions exported by osxsel.m. (Both of these functions are + * expected to be called in the _main_ thread: the select subthread + * is an implementation detail of osxsel.m and ideally should not + * be visible at all outside it.) + */ +void osxsel_init(void); /* call this to kick things off */ +void osxsel_process_results(void); /* call this on receipt of a netevent */ + +#endif