X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fxmu.h;h=715d2eef0343d334294c4559650cb04762afd25c;hp=f2d42d175c53bb39eb01f036463456ac583d6c43;hb=ea1ea793fe6e244ef5555ed983423a204101af13;hpb=399b9f4466f37412410de8ec4a08e3dc5504ad10 diff --git a/src/xmu.h b/src/xmu.h index f2d42d1..715d2ee 100644 --- a/src/xmu.h +++ b/src/xmu.h @@ -9,6 +9,7 @@ # include # include # include +# include /* Do the EDITRES protocol if running X11R5 (or later) version */ #if (XtSpecificationRelease >= 5) @@ -27,5 +28,11 @@ int XmuReadBitmapDataFromFile (CONST char *filename, unsigned int *width, int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp); void XmuCopyISOLatin1Lowered (char *, CONST char *); +#define Max(x, y) (((x) > (y)) ? (x) : (y)) +#define Min(x, y) (((x) < (y)) ? (x) : (y)) +#define AssignMax(x, y) {if ((y) > (x)) x = (y);} +#define AssignMin(x, y) {if ((y) < (x)) x = (y);} +typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation; + #endif