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