428
+ − 1 /* Compatibility routines based on code from the MIT Xmu library */
+ − 2
+ − 3 /* Synched up with: Not in FSF. */
+ − 4
440
+ − 5 #ifndef INCLUDED_xmu_h_
+ − 6 #define INCLUDED_xmu_h_
+ − 7
428
+ − 8 #ifdef HAVE_XMU
+ − 9
+ − 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>
+ − 16
+ − 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 */
+ − 21 #define HACK_EDITRES
+ − 22 #include <X11/Xmu/Editres.h>
+ − 23 #endif /* R5+ */
+ − 24
+ − 25 #else
+ − 26
442
+ − 27 int XmuCursorNameToIndex (const char *name);
+ − 28 int XmuReadBitmapDataFromFile (const char *filename, unsigned int *width,
428
+ − 29 unsigned int *height, unsigned char **datap,
+ − 30 int *x_hot, int *y_hot);
+ − 31 int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp);
442
+ − 32 void XmuCopyISOLatin1Lowered (char *, const char *);
428
+ − 33
+ − 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;
+ − 39
440
+ − 40 #endif /* HAVE_XMU */
428
+ − 41
440
+ − 42 #endif /* INCLUDED_xmu_h_ */