mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 20:08:39 -05:00

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]
19 lines
536 B
C
19 lines
536 B
C
#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
|