Corrected a long-standing error in which ending text with a literal
[xcircuit.git] / tkwin32.h
blobb9fe6a8d9251283e574147dd63714a6538a3453d
1 #ifndef __TKWIN32_H__
3 #include <windows.h>
4 struct direct {
5 char *d_name;
6 };
7 typedef struct {
8 HANDLE hnd;
9 WIN32_FIND_DATA fd;
10 int dirty;
11 struct direct d;
12 } DIR;
13 DIR* opendir(const char*);
14 struct direct* readdir(DIR*);
15 void closedir(DIR*);
17 typedef short Dimension;
18 typedef Bool Boolean;
19 typedef unsigned long Pixel;
20 typedef void* caddr_t;
21 #define TRUE 1
22 #define FALSE 0
23 typedef void* XtAppContext;
24 typedef struct {
25 unsigned int size;
26 XPointer addr;
27 } XrmValue, *XrmValuePtr;
28 #define snprintf _snprintf
29 #define pipe _pipe
30 #define unlink _unlink
31 #define putenv _putenv
32 #define vsnprintf _vsnprintf
33 #define XDefineCursor XDefineCursor_TkW32
34 #define XLookupColor XLookupColor_TkW32
35 #define XQueryColors XQueryColors_TkW32
37 extern XFontStruct* XLoadQueryFont(Display *dpy, char *fontname);
39 #endif