1 #ifndef NULL
2 #define NULL 0
3 #endif
4 
5 #ifndef XMD_H
6 #define XMD_H 1
7 
8 #include "types.h"
9 
10 /*
11  * Bitfield suffixes for the protocol structure elements, if you
12  * need them.  Note that bitfields are not guarranteed to be signed
13  * (or even unsigned) according to ANSI C.
14  */
15 #ifdef WORD64
16 #define B32 :32
17 #define B16 :16
18 #else
19 #define B32
20 #define B16
21 #endif
22 
23 typedef struct {
24     SHORT leftSideBearing B16,
25 	  rightSideBearing B16,
26 	  characterWidth B16,
27 	  ascent B16,
28 	  descent B16;
29     USHORT attributes;
30 } xCharInfo;
31 #endif /*  XMD_H */
32 
33 #ifndef _FS_PROTO_H_
34 #define _FS_PROTO_H_
35 
36 typedef struct {
37     USHORT	x_resolution B16;
38     USHORT	y_resolution B16;
39     USHORT	point_size B16;
40 }	    fsResolution;
41 
42 #endif /* _FS_PROTO_H_ */
43