~ubuntu-branches/ubuntu/hardy/xcircuit/hardy

« back to all changes in this revision

Viewing changes to tkwin32.h

  • Committer: Bazaar Package Importer
  • Author(s): Aanjhan Ranganathan
  • Date: 2006-04-18 23:51:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060418235139-s49pkhwdzxvsxm5k
Tags: 3.4.21-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __TKWIN32_H__
 
2
 
 
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*);
 
16
 
 
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 vsnprintf _vsnprintf
 
31
#define XDefineCursor XDefineCursor_TkW32
 
32
#define XLookupColor XLookupColor_TkW32
 
33
#define XQueryColors XQueryColors_TkW32
 
34
 
 
35
#endif