1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Begin destabilisation in the wake of 0.53! This checkin contains the

beginning of a Unix port. It's nowhere near done, and currently it
won't even compile on Unix. But this represents the start of the
process of separating out platform-specific code, and also contains
the mkfiles.pl changes required to support a Unix makefile and a
non-flat source tree.

[originally from svn r1993]
This commit is contained in:
Simon Tatham
2002-10-07 16:45:23 +00:00
parent ace232f5fa
commit 64c52b0d30
11 changed files with 429 additions and 89 deletions

18
unix/unix.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef PUTTY_UNIX_H
#define PUTTY_UNIX_H
typedef void *Context; /* FIXME: probably needs changing */
/* Simple wraparound timer function */
unsigned long getticks(void); /* based on gettimeofday(2) */
#define GETTICKCOUNT getticks
#define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */
#define CURSORBLINK 400000 /* FIXME: need right way to do this */
#define WCHAR wchar_t
#define BYTE unsigned char
#define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
#endif