1 /* Compatibility routines based on code from the MIT Xmu library */
3 /* Synched up with: Not in FSF. */
5 #ifndef INCLUDED_xmu_h_
6 #define INCLUDED_xmu_h_
10 # include <X11/Xmu/CharSet.h>
11 # include <X11/Xmu/Converters.h>
12 # include <X11/Xmu/CurUtil.h>
13 # include <X11/Xmu/Drawing.h>
14 # include <X11/Xmu/Error.h>
15 # include <X11/Xmu/Misc.h>
17 /* Do the EDITRES protocol if running X11R5 (or later) version */
18 #if (XtSpecificationRelease >= 5)
19 /* #### No dice if we don't have XMU until someone ports
20 _XEditResCheckMessages to xmu.c */
22 #include <X11/Xmu/Editres.h>
27 int XmuCursorNameToIndex (const char *name);
28 int XmuReadBitmapDataFromFile (const char *filename, unsigned int *width,
29 unsigned int *height, unsigned char **datap,
30 int *x_hot, int *y_hot);
31 int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp);
32 void XmuCopyISOLatin1Lowered (char *, const char *);
34 #define Max(x, y) (((x) > (y)) ? (x) : (y))
35 #define Min(x, y) (((x) < (y)) ? (x) : (y))
36 #define AssignMax(x, y) {if ((y) > (x)) x = (y);}
37 #define AssignMin(x, y) {if ((y) < (x)) x = (y);}
38 typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation;
42 #endif /* INCLUDED_xmu_h_ */