diff src/xmu.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
line wrap: on
line diff
--- a/src/xmu.h	Mon Aug 13 11:25:03 2007 +0200
+++ b/src/xmu.h	Mon Aug 13 11:26:11 2007 +0200
@@ -9,6 +9,7 @@
 # include <X11/Xmu/CurUtil.h>
 # include <X11/Xmu/Drawing.h>
 # include <X11/Xmu/Error.h>
+# include <X11/Xmu/Misc.h>
 
 /* Do the EDITRES protocol if running X11R5 (or later) version */
 #if (XtSpecificationRelease >= 5) 
@@ -27,5 +28,11 @@
 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