forked from RTimothyEdwards/XCircuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtkwin32.h
39 lines (35 loc) · 810 Bytes
/
tkwin32.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __TKWIN32_H__
#include <windows.h>
struct direct {
char *d_name;
};
typedef struct {
HANDLE hnd;
WIN32_FIND_DATA fd;
int dirty;
struct direct d;
} DIR;
DIR* opendir(const char*);
struct direct* readdir(DIR*);
void closedir(DIR*);
typedef short Dimension;
typedef Bool Boolean;
typedef unsigned long Pixel;
typedef void* caddr_t;
#define TRUE 1
#define FALSE 0
typedef void* XtAppContext;
typedef struct {
unsigned int size;
XPointer addr;
} XrmValue, *XrmValuePtr;
#define snprintf _snprintf
#define pipe _pipe
#define unlink _unlink
#define putenv _putenv
#define vsnprintf _vsnprintf
#define XDefineCursor XDefineCursor_TkW32
#define XLookupColor XLookupColor_TkW32
#define XQueryColors XQueryColors_TkW32
extern XFontStruct* XLoadQueryFont(Display *dpy, char *fontname);
#endif